wheels 0.1.8 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (243) hide show
  1. data/Gemfile +20 -0
  2. data/VERSION +1 -1
  3. data/app/controllers/app_configs_controller.rb +12 -0
  4. data/app/controllers/application_controller.rb +39 -0
  5. data/app/helpers/application_helper.rb +24 -2
  6. data/app/models/sitemap.rb +7 -0
  7. data/app/views/app_configs/css.css.haml +2 -0
  8. data/app/views/layouts/application.html.haml +21 -15
  9. data/app/views/pages/_form_fields.html.haml +2 -0
  10. data/app/views/sitemaps/index.html.haml +68 -76
  11. data/db/migrate/0000_devise_create_users.rb +26 -0
  12. data/db/migrate/0180_acts_as_taggable_on_migration.rb +28 -0
  13. data/lib/generators/app_layout/app_layout_generator.rb +1 -1
  14. data/lib/generators/{wheels/core_extensions.rb → core_extensions.rb} +42 -1
  15. data/lib/generators/recipes/wheels.rb +46 -0
  16. data/lib/generators/recipes/wheels_update.rb +18 -0
  17. data/lib/generators/wheels/wheels_generator.rb +3 -1
  18. data/lib/generators/wheels_checkout_assets/USAGE +8 -0
  19. data/lib/generators/wheels_checkout_assets/wheels_checkout_assets_generator.rb +9 -0
  20. data/lib/generators/wheels_checkout_assets_readonly/USAGE +8 -0
  21. data/lib/generators/wheels_checkout_assets_readonly/wheels_checkout_assets_readonly_generator.rb +10 -0
  22. data/lib/generators/wheels_controller/USAGE +8 -0
  23. data/lib/generators/wheels_controller/wheels_controller_generator.rb +14 -0
  24. data/lib/generators/{wheels_views → wheels_model}/USAGE +1 -1
  25. data/lib/generators/wheels_model/wheels_model_generator.rb +14 -0
  26. data/lib/generators/{update_wheels/update_wheels_generator.rb → wheels_update/wheels_update_generator.rb} +7 -13
  27. data/lib/generators/wheels_view/USAGE +8 -0
  28. data/lib/generators/wheels_view/wheels_view_generator.rb +14 -0
  29. data/lib/wheels/routes.rb +7 -1
  30. data/wheels.gemspec +44 -218
  31. metadata +44 -218
  32. data/lib/generators/app_layout/core_extensions.rb +0 -51
  33. data/lib/generators/update_wheels/core_extensions.rb +0 -51
  34. data/lib/generators/update_wheels/recipes/wheels.rb +0 -11
  35. data/lib/generators/update_wheels/templates/haml/app/views/layouts/application.html.haml +0 -9
  36. data/lib/generators/wheels/install_generator.rb +0 -25
  37. data/lib/generators/wheels/recipes/wheels.rb +0 -66
  38. data/lib/generators/wheels/templates/cancan/ability.rb +0 -13
  39. data/lib/generators/wheels/templates/database/postgresql.yml +0 -19
  40. data/lib/generators/wheels/templates/git/gitignore +0 -8
  41. data/lib/generators/wheels/templates/mongoid/features/step_definitions/mongoid_steps.rb +0 -4
  42. data/lib/generators/wheels/templates/mongoid/features/support/hooks.rb +0 -3
  43. data/lib/generators/wheels/views_generator.rb +0 -15
  44. data/lib/generators/wheels_views/LICENCE +0 -20
  45. data/lib/generators/wheels_views/wheels_views_generator.rb +0 -15
  46. data/lib/wheels/base.rb +0 -7
  47. data/public/404.html +0 -26
  48. data/public/422.html +0 -26
  49. data/public/500.html +0 -26
  50. data/public/favicon.ico +0 -0
  51. data/public/images/dreamy/Thumbs.db +0 -0
  52. data/public/images/dreamy/bg-ad-top.png +0 -0
  53. data/public/images/dreamy/bg-body.png +0 -0
  54. data/public/images/dreamy/bg-feed.gif +0 -0
  55. data/public/images/dreamy/bg-footer.jpg +0 -0
  56. data/public/images/dreamy/bg-header.jpg +0 -0
  57. data/public/images/dreamy/bg-menu-hover.png +0 -0
  58. data/public/images/dreamy/bg-menu.png +0 -0
  59. data/public/images/dreamy/bg-sidebar-bottom.gif +0 -0
  60. data/public/images/dreamy/button-feed.png +0 -0
  61. data/public/images/dreamy/icon-comment.png +0 -0
  62. data/public/images/growl/error.png +0 -0
  63. data/public/images/growl/growl_bottom.png +0 -0
  64. data/public/images/growl/growl_repeat.png +0 -0
  65. data/public/images/growl/growl_top.png +0 -0
  66. data/public/images/growl/info.png +0 -0
  67. data/public/images/menu/item-pointer-mover.gif +0 -0
  68. data/public/images/menu/item-pointer.gif +0 -0
  69. data/public/images/menu/lava.gif +0 -0
  70. data/public/images/menu/lava.png +0 -0
  71. data/public/images/menu/main-bg.png +0 -0
  72. data/public/images/menu/main-delimiter.png +0 -0
  73. data/public/javascripts/galleries/configure_ckeditor.js +0 -8
  74. data/public/javascripts/jqUrl.js +0 -28
  75. data/public/javascripts/jquery-validate/additional-methods.js +0 -259
  76. data/public/javascripts/jquery-validate/changelog.txt +0 -239
  77. data/public/javascripts/jquery-validate/jquery.validate.js +0 -1146
  78. data/public/javascripts/jquery-validate/jquery.validate.min.js +0 -16
  79. data/public/javascripts/jquery-validate/jquery.validate.pack.js +0 -15
  80. data/public/javascripts/jquery-validate/lib/jquery-1.4.2.js +0 -6240
  81. data/public/javascripts/jquery-validate/lib/jquery.form.js +0 -660
  82. data/public/javascripts/jquery-validate/lib/jquery.js +0 -4376
  83. data/public/javascripts/jquery-validate/lib/jquery.metadata.js +0 -122
  84. data/public/javascripts/jquery-validate/localization/messages_ar.js +0 -24
  85. data/public/javascripts/jquery-validate/localization/messages_bg.js +0 -23
  86. data/public/javascripts/jquery-validate/localization/messages_cn.js +0 -23
  87. data/public/javascripts/jquery-validate/localization/messages_cs.js +0 -23
  88. data/public/javascripts/jquery-validate/localization/messages_da.js +0 -20
  89. data/public/javascripts/jquery-validate/localization/messages_de.js +0 -20
  90. data/public/javascripts/jquery-validate/localization/messages_el.js +0 -24
  91. data/public/javascripts/jquery-validate/localization/messages_es.js +0 -23
  92. data/public/javascripts/jquery-validate/localization/messages_fa.js +0 -23
  93. data/public/javascripts/jquery-validate/localization/messages_fi.js +0 -21
  94. data/public/javascripts/jquery-validate/localization/messages_fr.js +0 -23
  95. data/public/javascripts/jquery-validate/localization/messages_he.js +0 -23
  96. data/public/javascripts/jquery-validate/localization/messages_hu.js +0 -20
  97. data/public/javascripts/jquery-validate/localization/messages_it.js +0 -23
  98. data/public/javascripts/jquery-validate/localization/messages_kk.js +0 -23
  99. data/public/javascripts/jquery-validate/localization/messages_lt.js +0 -23
  100. data/public/javascripts/jquery-validate/localization/messages_lv.js +0 -23
  101. data/public/javascripts/jquery-validate/localization/messages_nl.js +0 -23
  102. data/public/javascripts/jquery-validate/localization/messages_no.js +0 -23
  103. data/public/javascripts/jquery-validate/localization/messages_pl.js +0 -23
  104. data/public/javascripts/jquery-validate/localization/messages_ptbr.js +0 -23
  105. data/public/javascripts/jquery-validate/localization/messages_ptpt.js +0 -23
  106. data/public/javascripts/jquery-validate/localization/messages_ro.js +0 -23
  107. data/public/javascripts/jquery-validate/localization/messages_ru.js +0 -23
  108. data/public/javascripts/jquery-validate/localization/messages_se.js +0 -21
  109. data/public/javascripts/jquery-validate/localization/messages_sk.js +0 -20
  110. data/public/javascripts/jquery-validate/localization/messages_tr.js +0 -23
  111. data/public/javascripts/jquery-validate/localization/messages_tw.js +0 -23
  112. data/public/javascripts/jquery-validate/localization/messages_ua.js +0 -23
  113. data/public/javascripts/jquery-validate/localization/methods_de.js +0 -12
  114. data/public/javascripts/jquery-validate/localization/methods_nl.js +0 -9
  115. data/public/javascripts/jquery-validate/localization/methods_pt.js +0 -9
  116. data/public/javascripts/jquery-validate/todo +0 -172
  117. data/public/javascripts/jquery.cookie.js +0 -96
  118. data/public/javascripts/jquery.filedrop.js +0 -253
  119. data/public/javascripts/jquery.growl.js +0 -143
  120. data/public/javascripts/jquery.hotkeys.js +0 -99
  121. data/public/javascripts/jquery.js +0 -6240
  122. data/public/javascripts/jquery.jstree.js +0 -3510
  123. data/public/javascripts/jquery.uploadify.js +0 -26
  124. data/public/javascripts/jquery.validate.js +0 -1147
  125. data/public/javascripts/loadbehind.js +0 -0
  126. data/public/javascripts/menu.js +0 -247
  127. data/public/javascripts/sitemap_jstree.js +0 -329
  128. data/public/javascripts/swfobject.js +0 -4
  129. data/public/jstree/_demo/_dump.sql +0 -20
  130. data/public/jstree/_demo/_inc/__mysql_errors.log +0 -0
  131. data/public/jstree/_demo/_inc/class._database.php +0 -146
  132. data/public/jstree/_demo/_inc/class._database_i.php +0 -152
  133. data/public/jstree/_demo/_inc/class.tree.php +0 -602
  134. data/public/jstree/_demo/_install.txt +0 -6
  135. data/public/jstree/_demo/config.php +0 -14
  136. data/public/jstree/_demo/index.html +0 -262
  137. data/public/jstree/_demo/server.php +0 -69
  138. data/public/jstree/_docs/!style.css +0 -37
  139. data/public/jstree/_docs/_drive.png +0 -0
  140. data/public/jstree/_docs/_html_data.html +0 -2
  141. data/public/jstree/_docs/_json_data.json +0 -4
  142. data/public/jstree/_docs/_search_data.json +0 -6
  143. data/public/jstree/_docs/_search_result.json +0 -1
  144. data/public/jstree/_docs/_xml_flat.xml +0 -12
  145. data/public/jstree/_docs/_xml_nest.xml +0 -18
  146. data/public/jstree/_docs/checkbox.html +0 -148
  147. data/public/jstree/_docs/contextmenu.html +0 -120
  148. data/public/jstree/_docs/cookies.html +0 -96
  149. data/public/jstree/_docs/core.html +0 -622
  150. data/public/jstree/_docs/crrm.html +0 -315
  151. data/public/jstree/_docs/dnd.html +0 -197
  152. data/public/jstree/_docs/hotkeys.html +0 -81
  153. data/public/jstree/_docs/html_data.html +0 -174
  154. data/public/jstree/_docs/index.html +0 -75
  155. data/public/jstree/_docs/json_data.html +0 -240
  156. data/public/jstree/_docs/languages.html +0 -138
  157. data/public/jstree/_docs/search.html +0 -114
  158. data/public/jstree/_docs/sort.html +0 -84
  159. data/public/jstree/_docs/syntax/!script.js +0 -2232
  160. data/public/jstree/_docs/syntax/!style.css +0 -511
  161. data/public/jstree/_docs/syntax/clipboard.swf +0 -0
  162. data/public/jstree/_docs/syntax/help.png +0 -0
  163. data/public/jstree/_docs/syntax/magnifier.png +0 -0
  164. data/public/jstree/_docs/syntax/page_white_code.png +0 -0
  165. data/public/jstree/_docs/syntax/page_white_copy.png +0 -0
  166. data/public/jstree/_docs/syntax/printer.png +0 -0
  167. data/public/jstree/_docs/syntax/wrapping.png +0 -0
  168. data/public/jstree/_docs/themeroller.html +0 -98
  169. data/public/jstree/_docs/themes.html +0 -126
  170. data/public/jstree/_docs/types.html +0 -173
  171. data/public/jstree/_docs/ui.html +0 -188
  172. data/public/jstree/_docs/unique.html +0 -70
  173. data/public/jstree/_docs/xml_data.html +0 -214
  174. data/public/jstree/_lib/jquery.cookie.js +0 -96
  175. data/public/jstree/_lib/jquery.hotkeys.js +0 -99
  176. data/public/jstree/_lib/jquery.js +0 -6240
  177. data/public/jstree/jquery.jstree.js +0 -3510
  178. data/public/jstree/jstree.html +0 -237
  179. data/public/jstree/themes/apple/bg.jpg +0 -0
  180. data/public/jstree/themes/apple/d.png +0 -0
  181. data/public/jstree/themes/apple/dot_for_ie.gif +0 -0
  182. data/public/jstree/themes/apple/style.css +0 -60
  183. data/public/jstree/themes/apple/throbber.gif +0 -0
  184. data/public/jstree/themes/classic/d.png +0 -0
  185. data/public/jstree/themes/classic/dot_for_ie.gif +0 -0
  186. data/public/jstree/themes/classic/style.css +0 -59
  187. data/public/jstree/themes/classic/throbber.gif +0 -0
  188. data/public/jstree/themes/default/d.gif +0 -0
  189. data/public/jstree/themes/default/d.png +0 -0
  190. data/public/jstree/themes/default/style.css +0 -73
  191. data/public/jstree/themes/default/throbber.gif +0 -0
  192. data/public/jstree/themes/default-rtl/d.gif +0 -0
  193. data/public/jstree/themes/default-rtl/d.png +0 -0
  194. data/public/jstree/themes/default-rtl/dots.gif +0 -0
  195. data/public/jstree/themes/default-rtl/style.css +0 -83
  196. data/public/jstree/themes/default-rtl/throbber.gif +0 -0
  197. data/public/stylesheets/dreamy.css +0 -183
  198. data/public/stylesheets/menu.css +0 -101
  199. data/public/stylesheets/sass/dreamy.sass +0 -165
  200. data/public/stylesheets/sass/menu.sass +0 -139
  201. data/public/stylesheets/sass/uploadify.sass +0 -52
  202. data/public/stylesheets/sass/wheels.sass +0 -25
  203. data/public/stylesheets/scaffold.css +0 -56
  204. data/public/stylesheets/ui-lightness/images/ui-anim_basic_16x16.gif +0 -0
  205. data/public/stylesheets/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
  206. data/public/stylesheets/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
  207. data/public/stylesheets/ui-lightness/images/ui-bg_flat_10_000000_40x100.png +0 -0
  208. data/public/stylesheets/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
  209. data/public/stylesheets/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
  210. data/public/stylesheets/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  211. data/public/stylesheets/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
  212. data/public/stylesheets/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
  213. data/public/stylesheets/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
  214. data/public/stylesheets/ui-lightness/images/ui-icons_222222_256x240.png +0 -0
  215. data/public/stylesheets/ui-lightness/images/ui-icons_228ef1_256x240.png +0 -0
  216. data/public/stylesheets/ui-lightness/images/ui-icons_ef8c08_256x240.png +0 -0
  217. data/public/stylesheets/ui-lightness/images/ui-icons_ffd27a_256x240.png +0 -0
  218. data/public/stylesheets/ui-lightness/images/ui-icons_ffffff_256x240.png +0 -0
  219. data/public/stylesheets/ui-lightness/jquery-ui-1.8.2.custom.css +0 -359
  220. data/public/stylesheets/ui-lightness/jquery-ui-1.8.4.custom.css +0 -549
  221. data/public/test.html +0 -18
  222. /data/lib/generators/{wheels/recipes → recipes}/cancan.rb +0 -0
  223. /data/lib/generators/{wheels/recipes → recipes}/cucumber.rb +0 -0
  224. /data/lib/generators/{wheels/recipes → recipes}/default.rb +0 -0
  225. /data/lib/generators/{wheels/recipes → recipes}/design.rb +0 -0
  226. /data/lib/generators/{wheels/recipes → recipes}/devise.rb +0 -0
  227. /data/lib/generators/{wheels/recipes → recipes}/factory_girl.rb +0 -0
  228. /data/lib/generators/{wheels/recipes → recipes}/haml.rb +0 -0
  229. /data/lib/generators/{wheels/recipes → recipes}/jquery.rb +0 -0
  230. /data/lib/generators/{wheels/recipes → recipes}/mongoid.rb +0 -0
  231. /data/lib/generators/{wheels/recipes → recipes}/postgresql.rb +0 -0
  232. /data/lib/generators/{wheels/recipes → recipes}/recipes.rb +0 -0
  233. /data/lib/generators/{wheels/recipes → recipes}/remarkable.rb +0 -0
  234. /data/lib/generators/{wheels/recipes → recipes}/rspec.rb +0 -0
  235. /data/lib/generators/{wheels/snippets → snippets}/cucumber/database_config +0 -0
  236. /data/lib/generators/{update_wheels/templates → templates}/cancan/ability.rb +0 -0
  237. /data/lib/generators/{update_wheels/templates → templates}/database/postgresql.yml +0 -0
  238. /data/lib/generators/{update_wheels/templates → templates}/git/gitignore +0 -0
  239. /data/lib/generators/{wheels/templates → templates}/haml/app/views/layouts/application.html.haml +0 -0
  240. /data/lib/generators/{update_wheels/templates → templates}/mongoid/features/step_definitions/mongoid_steps.rb +0 -0
  241. /data/lib/generators/{update_wheels/templates → templates}/mongoid/features/support/hooks.rb +0 -0
  242. /data/lib/generators/{update_wheels → wheels_update}/LICENCE +0 -0
  243. /data/lib/generators/{update_wheels → wheels_update}/USAGE +0 -0
@@ -1,23 +0,0 @@
1
- /**
2
- * Translated default messages for the jQuery validation plugin.
3
- * Locale: PT_PT
4
- */
5
- jQuery.extend(jQuery.validator.messages, {
6
- required: "Campo de preenchimento obrigatório.",
7
- remote: "Por favor, corrija este campo.",
8
- email: "Por favor, introduza um endereço eletrónico válido.",
9
- url: "Por favor, introduza um URL válido.",
10
- date: "Por favor, introduza uma data válida.",
11
- dateISO: "Por favor, introduza uma data válida (ISO).",
12
- number: "Por favor, introduza um número válido.",
13
- digits: "Por favor, introduza apenas dígitos.",
14
- creditcard: "Por favor, introduza um número de cartão de crédito válido.",
15
- equalTo: "Por favor, introduza de novo o mesmo valor.",
16
- accept: "Por favor, introduza um ficheiro com uma extensão válida.",
17
- maxlength: jQuery.validator.format("Por favor, não introduza mais do que {0} caracteres."),
18
- minlength: jQuery.validator.format("Por favor, introduza pelo menos {0} caracteres."),
19
- rangelength: jQuery.validator.format("Por favor, introduza entre {0} e {1} caracteres."),
20
- range: jQuery.validator.format("Por favor, introduza um valor entre {0} e {1}."),
21
- max: jQuery.validator.format("Por favor, introduza um valor menor ou igual a {0}."),
22
- min: jQuery.validator.format("Por favor, introduza um valor maior ou igual a {0}.")
23
- });
@@ -1,23 +0,0 @@
1
- /*
2
- * Translated default messages for the jQuery validation plugin.
3
- * Locale: RO
4
- */
5
- jQuery.extend(jQuery.validator.messages, {
6
- required: "Acest câmp este obligatoriu.",
7
- remote: "Te rugăm să completezi acest câmp.",
8
- email: "Te rugăm să introduci o adresă de email validă",
9
- url: "Te rugăm sa introduci o adresă URL validă.",
10
- date: "Te rugăm să introduci o dată corectă.",
11
- dateISO: "Te rugăm să introduci o dată (ISO) corectă.",
12
- number: "Te rugăm să introduci un număr întreg valid.",
13
- digits: "Te rugăm să introduci doar cifre.",
14
- creditcard: "Te rugăm să introduci un numar de carte de credit valid.",
15
- equalTo: "Te rugăm să reintroduci valoarea.",
16
- accept: "Te rugăm să introduci o valoare cu o extensie validă.",
17
- maxlength: jQuery.validator.format("Te rugăm să nu introduci mai mult de {0} caractere."),
18
- minlength: jQuery.validator.format("Te rugăm să introduci cel puțin {0} caractere."),
19
- rangelength: jQuery.validator.format("Te rugăm să introduci o valoare între {0} și {1} caractere."),
20
- range: jQuery.validator.format("Te rugăm să introduci o valoare între {0} și {1}."),
21
- max: jQuery.validator.format("Te rugăm să introduci o valoare egal sau mai mică decât {0}."),
22
- min: jQuery.validator.format("Te rugăm să introduci o valoare egal sau mai mare decât {0}.")
23
- });
@@ -1,23 +0,0 @@
1
- /*
2
- * Translated default messages for the jQuery validation plugin.
3
- * Locale: RU
4
- */
5
- jQuery.extend(jQuery.validator.messages, {
6
- required: "Это поле необходимо заполнить.",
7
- remote: "Пожалуйста, введите правильное значение.",
8
- email: "Пожалуйста, введите корретный адрес электронной почты.",
9
- url: "Пожалуйста, введите корректный URL.",
10
- date: "Пожалуйста, введите корректную дату.",
11
- dateISO: "Пожалуйста, введите корректную дату в формате ISO.",
12
- number: "Пожалуйста, введите число.",
13
- digits: "Пожалуйста, вводите только цифры.",
14
- creditcard: "Пожалуйста, введите правильный номер кредитной карты.",
15
- equalTo: "Пожалуйста, введите такое же значение ещё раз.",
16
- accept: "Пожалуйста, выберите файл с правильным расширением.",
17
- maxlength: jQuery.validator.format("Пожалуйста, введите не больше {0} символов."),
18
- minlength: jQuery.validator.format("Пожалуйста, введите не меньше {0} символов."),
19
- rangelength: jQuery.validator.format("Пожалуйста, введите значение длиной от {0} до {1} символов."),
20
- range: jQuery.validator.format("Пожалуйста, введите число от {0} до {1}."),
21
- max: jQuery.validator.format("Пожалуйста, введите число, меньшее или равное {0}."),
22
- min: jQuery.validator.format("Пожалуйста, введите число, большее или равное {0}.")
23
- });
@@ -1,21 +0,0 @@
1
- /*
2
- * Translated default messages for the jQuery validation plugin.
3
- * Locale: SE
4
- */
5
- jQuery.extend(jQuery.validator.messages, {
6
- required: "Detta fält är obligatoriskt.",
7
- maxlength: jQuery.validator.format("Du får ange högst {0} tecken."),
8
- minlength: jQuery.validator.format("Du måste ange minst {0} tecken."),
9
- rangelength: jQuery.validator.format("Ange minst {0} och max {1} tecken."),
10
- email: "Ange en korrekt e-postadress.",
11
- url: "Ange en korrekt URL.",
12
- date: "Ange ett korrekt datum.",
13
- dateISO: "Ange ett korrekt datum (ÅÅÅÅ-MM-DD).",
14
- number: "Ange ett korrekt nummer.",
15
- digits: "Ange endast siffror.",
16
- equalTo: "Ange samma värde igen.",
17
- range: jQuery.validator.format("Ange ett värde mellan {0} och {1}."),
18
- max: jQuery.validator.format("Ange ett värde som är större eller lika med {0}."),
19
- min: jQuery.validator.format("Ange ett värde som är mindre eller lika med {0}."),
20
- creditcard: "Ange ett korrekt kreditkortsnummer."
21
- });
@@ -1,20 +0,0 @@
1
- /*
2
- * Translated default messages for the jQuery validation plugin.
3
- * Locale: SK
4
- */
5
- jQuery.extend(jQuery.validator.messages, {
6
- required: "Povinné zadať.",
7
- maxlength: jQuery.validator.format("Maximálne {0} znakov."),
8
- minlength: jQuery.validator.format("Minimálne {0} znakov."),
9
- rangelength: jQuery.validator.format("Minimálne {0} a Maximálne {0} znakov."),
10
- email: "E-mailová adresa musí byť platná.",
11
- url: "URL musí byť platný.",
12
- date: "Musí byť dátum.",
13
- number: "Musí byť číslo.",
14
- digits: "Môže obsahovať iba číslice.",
15
- equalTo: "Dva hodnoty sa musia rovnať.",
16
- range: jQuery.validator.format("Musí byť medzi {0} a {1}."),
17
- max: jQuery.validator.format("Nemôže byť viac ako{0}."),
18
- min: jQuery.validator.format("Nemôže byť menej ako{0}."),
19
- creditcard: "Číslo platobnej karty musí byť platné."
20
- });
@@ -1,23 +0,0 @@
1
- /*
2
- * Translated default messages for the jQuery validation plugin.
3
- * Locale: TR
4
- */
5
- jQuery.extend(jQuery.validator.messages, {
6
- required: "Bu alanın doldurulması zorunludur.",
7
- remote: "Lütfen bu alanı düzeltin.",
8
- email: "Lütfen geçerli bir e-posta adresi giriniz.",
9
- url: "Lütfen geçerli bir web adresi (URL) giriniz.",
10
- date: "Lütfen geçerli bir tarih giriniz.",
11
- dateISO: "Lütfen geçerli bir tarih giriniz(ISO formatında)",
12
- number: "Lütfen geçerli bir sayı giriniz.",
13
- digits: "Lütfen sadece sayısal karakterler giriniz.",
14
- creditcard: "Lütfen geçerli bir kredi kartı giriniz.",
15
- equalTo: "Lütfen aynı değeri tekrar giriniz.",
16
- accept: "Lütfen geçerli uzantıya sahip bir değer giriniz.",
17
- maxlength: jQuery.validator.format("Lütfen en fazla {0} karakter uzunluğunda bir değer giriniz."),
18
- minlength: jQuery.validator.format("Lütfen en az {0} karakter uzunluğunda bir değer giriniz."),
19
- rangelength: jQuery.validator.format("Lütfen en az {0} ve en fazla {1} uzunluğunda bir değer giriniz."),
20
- range: jQuery.validator.format("Lütfen {0} ile {1} arasında bir değer giriniz."),
21
- max: jQuery.validator.format("Lütfen {0} değerine eşit ya da daha küçük bir değer giriniz."),
22
- min: jQuery.validator.format("Lütfen {0} değerine eşit ya da daha büyük bir değer giriniz.")
23
- });
@@ -1,23 +0,0 @@
1
- /*
2
- * Translated default messages for the jQuery validation plugin.
3
- * Locale: TW (Taiwan - Traditional Chinese)
4
- */
5
- jQuery.extend(jQuery.validator.messages, {
6
- required: "必填",
7
- remote: "請修正此欄位",
8
- email: "請輸入正確的電子信箱",
9
- url: "請輸入合法的URL",
10
- date: "請輸入合法的日期",
11
- dateISO: "請輸入合法的日期 (ISO).",
12
- number: "請輸入數字",
13
- digits: "請輸入整數",
14
- creditcard: "請輸入合法的信用卡號碼",
15
- equalTo: "請重複輸入一次",
16
- accept: "請輸入有效的後缀字串",
17
- maxlength: jQuery.validator.format("請輸入長度不大於{0} 的字串"),
18
- minlength: jQuery.validator.format("請輸入長度不小於 {0} 的字串"),
19
- rangelength: jQuery.validator.format("請輸入長度介於 {0} 和 {1} 之間的字串"),
20
- range: jQuery.validator.format("請輸入介於 {0} 和 {1} 之間的數值"),
21
- max: jQuery.validator.format("請輸入不大於 {0} 的數值"),
22
- min: jQuery.validator.format("請輸入不小於 {0} 的數值")
23
- });
@@ -1,23 +0,0 @@
1
- /*
2
- * Translated default messages for the jQuery validation plugin.
3
- * Locale: UA (Ukrainian)
4
- */
5
- jQuery.extend(jQuery.validator.messages, {
6
- required: "Це поле необхідно заповнити.",
7
- remote: "Будь ласка, введіть правильне значення.",
8
- email: "Будь ласка, введіть коректну адресу електронної пошти.",
9
- url: "Будь ласка, введіть коректний URL.",
10
- date: "Будь ласка, введіть коректну дату.",
11
- dateISO: "Будь ласка, введіть коректну дату у форматі ISO.",
12
- number: "Будь ласка, введіть число.",
13
- digits: "Вводите потрібно лише цифри.",
14
- creditcard: "Будь ласка, введіть правильний номер кредитної карти.",
15
- equalTo: "Будь ласка, введіть таке ж значення ще раз.",
16
- accept: "Будь ласка, виберіть файл з правильним розширенням.",
17
- maxlength: jQuery.validator.format("Будь ласка, введіть не більше {0} символів."),
18
- minlength: jQuery.validator.format("Будь ласка, введіть не менше {0} символів."),
19
- rangelength: jQuery.validator.format("Будь ласка, введіть значення довжиною від {0} до {1} символів."),
20
- range: jQuery.validator.format("Будь ласка, введіть число від {0} до {1}."),
21
- max: jQuery.validator.format("Будь ласка, введіть число, менше або рівно {0}."),
22
- min: jQuery.validator.format("Будь ласка, введіть число, більше або рівно {0}.")
23
- });
@@ -1,12 +0,0 @@
1
- /*
2
- * Localized default methods for the jQuery validation plugin.
3
- * Locale: DE
4
- */
5
- jQuery.extend(jQuery.validator.methods, {
6
- date: function(value, element) {
7
- return this.optional(element) || /^\d\d?\.\d\d?\.\d\d\d?\d?$/.test(value);
8
- },
9
- number: function(value, element) {
10
- return this.optional(element) || /^-?(?:\d+|\d{1,3}(?:\.\d{3})+)(?:,\d+)?$/.test(value);
11
- }
12
- });
@@ -1,9 +0,0 @@
1
- /*
2
- * Localized default methods for the jQuery validation plugin.
3
- * Locale: NL
4
- */
5
- jQuery.extend(jQuery.validator.methods, {
6
- date: function(value, element) {
7
- return this.optional(element) || /^\d\d?[\.\/-]\d\d?[\.\/-]\d\d\d?\d?$/.test(value);
8
- }
9
- });
@@ -1,9 +0,0 @@
1
- /*
2
- * Localized default methods for the jQuery validation plugin.
3
- * Locale: PT_BR
4
- */
5
- jQuery.extend(jQuery.validator.methods, {
6
- date: function(value, element) {
7
- return this.optional(element) || /^\d\d?\/\d\d?\/\d\d\d?\d?$/.test(value);
8
- }
9
- });
@@ -1,172 +0,0 @@
1
- 1.3
2
- ---
3
-
4
- - checkout datejs.com for a proper date implementation -> complete but very heavy parser, currently overkill
5
-
6
- - rewrite required-method to use jQuery's extended val() on selects[/radios/checkboxes]
7
- - consider a field-validator object that encapsulates a single element and all methods working on it
8
- - export API browser
9
- - add example/support for other URL schemes like svn://....
10
- - document min/max/range methods for checkboxes/selects
11
-
12
- /**
13
- * Return false, if the element is
14
- *
15
- * - some kind of text input and its value is too short
16
- *
17
- * - a set of checkboxes has not enough boxes checked
18
- *
19
- * - a select and has not enough options selected
20
- *
21
- * Works with all kind of text inputs, checkboxes and select.
22
- *
23
- * @example <input name="firstname" class="{minLength:5}" />
24
- * @desc Declares an optional input element with at least 5 characters (or none at all).
25
- *
26
- * @example <input name="firstname" class="{required:true,minLength:5}" />
27
- * @desc Declares an input element that must have at least 5 characters.
28
- *
29
- * @example <fieldset>
30
- * <legend>Spam</legend>
31
- * <label for="spam_email">
32
- * <input type="checkbox" id="spam_email" value="email" name="spam" validate="required:true,minLength:2" />
33
- * Spam via E-Mail
34
- * </label>
35
- * <label for="spam_phone">
36
- * <input type="checkbox" id="spam_phone" value="phone" name="spam" />
37
- * Spam via Phone
38
- * </label>
39
- * <label for="spam_mail">
40
- * <input type="checkbox" id="spam_mail" value="mail" name="spam" />
41
- * Spam via Mail
42
- * </label>
43
- * <label for="spam" class="error">Please select at least two types of spam.</label>
44
- * </fieldset>
45
- * @desc Specifies a group of checkboxes. To validate, at least two checkboxes must be selected.
46
- *
47
- * @param Number min
48
- * @name jQuery.validator.methods.minLength
49
- * @type Boolean
50
- * @cat Plugins/Validate/Methods
51
- */
52
-
53
- /**
54
- * Return false, if the element is
55
- *
56
- * - some kind of text input and its value is too short or too long
57
- *
58
- * - a set of checkboxes has not enough or too many boxes checked
59
- *
60
- * - a select and has not enough or too many options selected
61
- *
62
- * Works with all kind of text inputs, checkboxes and selects.
63
- *
64
- * @example <input name="firstname" class="{rangeLength:[3,5]}" />
65
- * @desc Declares an optional input element with at least 3 and at most 5 characters (or none at all).
66
- *
67
- * @example <input name="firstname" class="{required:true,rangeLength:[3,5]}" />
68
- * @desc Declares an input element that must have at least 3 and at most 5 characters.
69
- *
70
- * @example <select id="cars" class="{required:true,rangeLength:[2,3]}" multiple="multiple">
71
- * <option value="m_sl">Mercedes SL</option>
72
- * <option value="o_c">Opel Corsa</option>
73
- * <option value="vw_p">VW Polo</option>
74
- * <option value="t_s">Titanic Skoda</option>
75
- * </select>
76
- * @desc Specifies a select that must have at least two but no more than three options selected.
77
- *
78
- * @param Array<Number> min/max
79
- * @name jQuery.validator.methods.rangeLength
80
- * @type Boolean
81
- * @cat Plugins/Validate/Methods
82
- */
83
-
84
- - document numberOfInvalids and hideErrors
85
-
86
- /**
87
- * Returns the number of invalid elements in the form.
88
- *
89
- * @example $("#myform").validate({
90
- * showErrors: function() {
91
- * $("#summary").html("Your form contains " + this.numberOfInvalids() + " errors, see details below.");
92
- * this.defaultShowErrors();
93
- * }
94
- * });
95
- * @desc Specifies a custom showErrors callback that updates the number of invalid elements each
96
- * time the form or a single element is validated.
97
- *
98
- * @name jQuery.validator.prototype.numberOfInvalids
99
- * @type Number
100
- */
101
-
102
- /**
103
- * Hides all error messages in this form.
104
- *
105
- * @example var validator = $("#myform").validate();
106
- * $(".cancel").click(function() {
107
- * validator.hideErrors();
108
- * });
109
- * @desc Specifies a custom showErrors callback that updates the number of invalid elements each
110
- * time the form or a single element is validated.
111
- *
112
- * @name jQuery.validator.prototype.hideErrors
113
- */
114
-
115
- - remove deprecated methods
116
-
117
- - css references
118
- - http://test5.caribmedia.com/CSS/Secrets/members/michiel/floating-forms.html
119
- - http://paularmstrongdesigns.com/projects/awesomeform/
120
- - http://dnevnikeklektika.com/uni-form/
121
-
122
- - consider validation on page load, disabling required-checks
123
- - completely rework showErrors: manually settings errors is currently extremely flawed and utterly useless, eg. errors disappear if some other validation is triggered
124
- - add custom event to remote validation for adding more parameters
125
-
126
- - document focusInvalid()
127
- - document validation lifecycle: setup (add event handlers), run validation (prepare form, validate elements, display errors/submit form)
128
- -> show where the user can hook in via callbacks
129
-
130
- - AND depedency: specify multiple expressions as an array
131
-
132
- - add custom events for form and elements instead of more callbacks (additional options/callbacks)
133
- - beforeValidation: Callback, called before doing any validation
134
- - beforeSubmit: Callback, called before submitting the form (default submit or calling submitHandler, if specified)
135
-
136
- - animations!!
137
- - ajax validation:
138
- - in combination with autocomplete (mustmatch company name, fill out address details, validate required)
139
- - validate zip code in comparison to address, if match and state is missing, fill out state
140
- - strong password check/integration: http://phiras.wordpress.com/2007/04/08/password-strength-meter-a-jquery-plugin/
141
-
142
- - stop firefox password manager to popup before validation - check mozilla bug tracker?
143
-
144
- - overload addMethod with a Option-variant:
145
- $.validator.addMethod({
146
- name: "custom",
147
- message: "blablabla",
148
- parameteres: false,
149
- handler: function() { ... }
150
- });
151
-
152
- Examples:
153
- - wordpress comment form, make it a drop-in method
154
- - ajaxForm() integration
155
- - ajaxSubmit with rules-option, more/less options to ajaxSubmit
156
- - watermark integration http://digitalbush.com/projects/watermark-input-plugin
157
- - datepicker integration
158
- - timepicker integration ( http://labs.perifer.se/timedatepicker/ )
159
- - integration with CakePHP ( https://trac.cakephp.org/ticket/2359 )
160
- - integration with tabs: http://www.netix.sk/forms/test.html
161
- - intergration with rich-text-editors (FCKEditor, Codepress)
162
- http://www.fyneworks.com/jquery/FCKEditor/
163
-
164
- 2.0
165
- ---
166
- - attachValidation, removeValidation, validate (with UI), valid (without UI)
167
- - (re)move current addMethod implementation
168
- - move rules plugin option
169
- - move metadata support
170
- - make validate method chainable
171
- -> provide an accessor for the validator if necessary at all
172
- - move a few default methods to additionals, eg. dateXXX, creditcard, definitely accept
@@ -1,96 +0,0 @@
1
- /**
2
- * Cookie plugin
3
- *
4
- * Copyright (c) 2006 Klaus Hartl (stilbuero.de)
5
- * Dual licensed under the MIT and GPL licenses:
6
- * http://www.opensource.org/licenses/mit-license.php
7
- * http://www.gnu.org/licenses/gpl.html
8
- *
9
- */
10
-
11
- /**
12
- * Create a cookie with the given name and value and other optional parameters.
13
- *
14
- * @example $.cookie('the_cookie', 'the_value');
15
- * @desc Set the value of a cookie.
16
- * @example $.cookie('the_cookie', 'the_value', { expires: 7, path: '/', domain: 'jquery.com', secure: true });
17
- * @desc Create a cookie with all available options.
18
- * @example $.cookie('the_cookie', 'the_value');
19
- * @desc Create a session cookie.
20
- * @example $.cookie('the_cookie', null);
21
- * @desc Delete a cookie by passing null as value. Keep in mind that you have to use the same path and domain
22
- * used when the cookie was set.
23
- *
24
- * @param String name The name of the cookie.
25
- * @param String value The value of the cookie.
26
- * @param Object options An object literal containing key/value pairs to provide optional cookie attributes.
27
- * @option Number|Date expires Either an integer specifying the expiration date from now on in days or a Date object.
28
- * If a negative value is specified (e.g. a date in the past), the cookie will be deleted.
29
- * If set to null or omitted, the cookie will be a session cookie and will not be retained
30
- * when the the browser exits.
31
- * @option String path The value of the path atribute of the cookie (default: path of page that created the cookie).
32
- * @option String domain The value of the domain attribute of the cookie (default: domain of page that created the cookie).
33
- * @option Boolean secure If true, the secure attribute of the cookie will be set and the cookie transmission will
34
- * require a secure protocol (like HTTPS).
35
- * @type undefined
36
- *
37
- * @name $.cookie
38
- * @cat Plugins/Cookie
39
- * @author Klaus Hartl/klaus.hartl@stilbuero.de
40
- */
41
-
42
- /**
43
- * Get the value of a cookie with the given name.
44
- *
45
- * @example $.cookie('the_cookie');
46
- * @desc Get the value of a cookie.
47
- *
48
- * @param String name The name of the cookie.
49
- * @return The value of the cookie.
50
- * @type String
51
- *
52
- * @name $.cookie
53
- * @cat Plugins/Cookie
54
- * @author Klaus Hartl/klaus.hartl@stilbuero.de
55
- */
56
- jQuery.cookie = function(name, value, options) {
57
- if (typeof value != 'undefined') { // name and value given, set cookie
58
- options = options || {};
59
- if (value === null) {
60
- value = '';
61
- options.expires = -1;
62
- }
63
- var expires = '';
64
- if (options.expires && (typeof options.expires == 'number' || options.expires.toUTCString)) {
65
- var date;
66
- if (typeof options.expires == 'number') {
67
- date = new Date();
68
- date.setTime(date.getTime() + (options.expires * 24 * 60 * 60 * 1000));
69
- } else {
70
- date = options.expires;
71
- }
72
- expires = '; expires=' + date.toUTCString(); // use expires attribute, max-age is not supported by IE
73
- }
74
- // CAUTION: Needed to parenthesize options.path and options.domain
75
- // in the following expressions, otherwise they evaluate to undefined
76
- // in the packed version for some reason...
77
- var path = options.path ? '; path=' + (options.path) : '';
78
- var domain = options.domain ? '; domain=' + (options.domain) : '';
79
- var secure = options.secure ? '; secure' : '';
80
- document.cookie = [name, '=', encodeURIComponent(value), expires, path, domain, secure].join('');
81
- } else { // only name given, get cookie
82
- var cookieValue = null;
83
- if (document.cookie && document.cookie != '') {
84
- var cookies = document.cookie.split(';');
85
- for (var i = 0; i < cookies.length; i++) {
86
- var cookie = jQuery.trim(cookies[i]);
87
- // Does this cookie string begin with the name we want?
88
- if (cookie.substring(0, name.length + 1) == (name + '=')) {
89
- cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
90
- break;
91
- }
92
- }
93
- }
94
- return cookieValue;
95
- }
96
- };