loldesign_publisher 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (129) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.rdoc +3 -0
  4. data/Rakefile +21 -0
  5. data/app/assets/images/grid.png +0 -0
  6. data/app/assets/images/loldesign_publisher/logo.png +0 -0
  7. data/app/assets/images/loldesign_publisher/logo.svg +81 -0
  8. data/app/assets/images/loldesign_publisher/nav_active_link.svg +8 -0
  9. data/app/assets/javascripts/loldesign_publisher/activable.js +51 -0
  10. data/app/assets/javascripts/loldesign_publisher/libs/datepicker-pt-BR.js +37 -0
  11. data/app/assets/javascripts/loldesign_publisher/libs/gumby.init.js +47 -0
  12. data/app/assets/javascripts/loldesign_publisher/libs/gumby.js +258 -0
  13. data/app/assets/javascripts/loldesign_publisher/libs/gumby.min.js +1 -0
  14. data/app/assets/javascripts/loldesign_publisher/libs/jquery-1.10.1.min.js +6 -0
  15. data/app/assets/javascripts/loldesign_publisher/libs/jquery-1.10.1.min.map +1 -0
  16. data/app/assets/javascripts/loldesign_publisher/libs/jquery-2.0.2.min.js +6 -0
  17. data/app/assets/javascripts/loldesign_publisher/libs/jquery-2.0.2.min.map +1 -0
  18. data/app/assets/javascripts/loldesign_publisher/libs/jquery.mask.min.js +7 -0
  19. data/app/assets/javascripts/loldesign_publisher/libs/jquery.mobile.custom.min.js +3 -0
  20. data/app/assets/javascripts/loldesign_publisher/libs/modernizr-2.6.2.min.js +4 -0
  21. data/app/assets/javascripts/loldesign_publisher/libs/ui/gumby.checkbox.js +101 -0
  22. data/app/assets/javascripts/loldesign_publisher/libs/ui/gumby.fixed.js +240 -0
  23. data/app/assets/javascripts/loldesign_publisher/libs/ui/gumby.navbar.js +115 -0
  24. data/app/assets/javascripts/loldesign_publisher/libs/ui/gumby.radiobtn.js +90 -0
  25. data/app/assets/javascripts/loldesign_publisher/libs/ui/gumby.retina.js +81 -0
  26. data/app/assets/javascripts/loldesign_publisher/libs/ui/gumby.skiplink.js +157 -0
  27. data/app/assets/javascripts/loldesign_publisher/libs/ui/gumby.tabs.js +80 -0
  28. data/app/assets/javascripts/loldesign_publisher/libs/ui/gumby.toggleswitch.js +264 -0
  29. data/app/assets/javascripts/loldesign_publisher/libs/ui/jquery.validation.js +142 -0
  30. data/app/assets/javascripts/loldesign_publisher/main.js +23 -0
  31. data/app/assets/javascripts/loldesign_publisher/plugins.js +4 -0
  32. data/app/assets/javascripts/loldesign_publisher/publisher.js +65 -0
  33. data/app/assets/stylesheets/loldesign_publisher/_base.css.scss +62 -0
  34. data/app/assets/stylesheets/loldesign_publisher/gumby.css +1683 -0
  35. data/app/assets/stylesheets/loldesign_publisher/layouts/_default.html.css.scss +15 -0
  36. data/app/assets/stylesheets/loldesign_publisher/layouts/_form.css.scss +101 -0
  37. data/app/assets/stylesheets/loldesign_publisher/layouts/_header_main.css.scss +20 -0
  38. data/app/assets/stylesheets/loldesign_publisher/layouts/_nav_main.css.scss +30 -0
  39. data/app/assets/stylesheets/loldesign_publisher/layouts/_resource_info.css.scss +40 -0
  40. data/app/assets/stylesheets/loldesign_publisher/modules/_add_resource.css.scss +12 -0
  41. data/app/assets/stylesheets/loldesign_publisher/modules/_btn_cancel.css.scss +13 -0
  42. data/app/assets/stylesheets/loldesign_publisher/modules/_btn_remove.css.scss +13 -0
  43. data/app/assets/stylesheets/loldesign_publisher/modules/_btn_save.css.scss +16 -0
  44. data/app/assets/stylesheets/loldesign_publisher/modules/_btn_show.css.scss +12 -0
  45. data/app/assets/stylesheets/loldesign_publisher/modules/_filter_box.css.scss +35 -0
  46. data/app/assets/stylesheets/loldesign_publisher/modules/_messages.css.scss +20 -0
  47. data/app/assets/stylesheets/loldesign_publisher/modules/_pagination.css.scss +65 -0
  48. data/app/assets/stylesheets/loldesign_publisher/modules/_table_page.css.scss +37 -0
  49. data/app/assets/stylesheets/loldesign_publisher/modules/_title_page.css.scss +54 -0
  50. data/app/assets/stylesheets/loldesign_publisher/publisher.css +7 -0
  51. data/app/controllers/loldesign_publisher/activables_controller.rb +26 -0
  52. data/app/controllers/loldesign_publisher/publisher_controller.rb +4 -0
  53. data/app/helpers/loldesign_publisher/publisher_helper.rb +101 -0
  54. data/app/views/layouts/loldesign_publisher/_header_main.html.erb +8 -0
  55. data/app/views/layouts/loldesign_publisher/_nav_main.html.erb +12 -0
  56. data/app/views/layouts/loldesign_publisher/modules/_add_resource.html.erb +3 -0
  57. data/app/views/layouts/loldesign_publisher/modules/_messages.html.erb +5 -0
  58. data/app/views/layouts/loldesign_publisher/modules/_td_not_found.html.erb +1 -0
  59. data/app/views/layouts/loldesign_publisher/modules/_title_page.html.erb +9 -0
  60. data/app/views/layouts/loldesign_publisher/publisher.html.erb +24 -0
  61. data/config/routes.rb +7 -0
  62. data/lib/generators/loldesign_publisher/install_generator.rb +26 -0
  63. data/lib/generators/loldesign_publisher/templates/loldesign_publisher.yml +12 -0
  64. data/lib/generators/loldesign_publisher/templates/override_publisher.css.scss +5 -0
  65. data/lib/generators/loldesign_publisher/templates/publisher_rails_app.js +3 -0
  66. data/lib/generators/loldesign_publisher/views_generator.rb +16 -0
  67. data/lib/loldesign_publisher.rb +28 -0
  68. data/lib/loldesign_publisher/engine.rb +28 -0
  69. data/lib/loldesign_publisher/version.rb +3 -0
  70. data/lib/tasks/loldesign_publisher_tasks.rake +4 -0
  71. data/public/fonts/icons/entypo.eot +0 -0
  72. data/public/fonts/icons/entypo.ttf +0 -0
  73. data/public/fonts/icons/entypo.woff +0 -0
  74. data/public/grid.js +68 -0
  75. data/spec/controllers/loldesign_publisher/activables_controller_spec.rb +21 -0
  76. data/spec/dummy/README.rdoc +28 -0
  77. data/spec/dummy/Rakefile +6 -0
  78. data/spec/dummy/app/assets/javascripts/application.js +13 -0
  79. data/spec/dummy/app/assets/javascripts/loldesign_publisher/publisher_rails_app.js +3 -0
  80. data/spec/dummy/app/assets/stylesheets/application.css +15 -0
  81. data/spec/dummy/app/assets/stylesheets/loldesign_publisher/override_publisher.css.scss +5 -0
  82. data/spec/dummy/app/controllers/application_controller.rb +5 -0
  83. data/spec/dummy/app/controllers/users_controller.rb +10 -0
  84. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  85. data/spec/dummy/app/models/user.rb +2 -0
  86. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  87. data/spec/dummy/app/views/users/_filters_by_from_to.html.erb +8 -0
  88. data/spec/dummy/app/views/users/_user.html.erb +9 -0
  89. data/spec/dummy/app/views/users/index.html.erb +26 -0
  90. data/spec/dummy/app/views/users/new.html.erb +23 -0
  91. data/spec/dummy/bin/bundle +3 -0
  92. data/spec/dummy/bin/rails +4 -0
  93. data/spec/dummy/bin/rake +4 -0
  94. data/spec/dummy/config.ru +4 -0
  95. data/spec/dummy/config/application.rb +29 -0
  96. data/spec/dummy/config/boot.rb +5 -0
  97. data/spec/dummy/config/database.yml +25 -0
  98. data/spec/dummy/config/environment.rb +5 -0
  99. data/spec/dummy/config/environments/development.rb +37 -0
  100. data/spec/dummy/config/environments/production.rb +78 -0
  101. data/spec/dummy/config/environments/test.rb +39 -0
  102. data/spec/dummy/config/initializers/assets.rb +8 -0
  103. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  104. data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
  105. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  106. data/spec/dummy/config/initializers/inflections.rb +16 -0
  107. data/spec/dummy/config/initializers/mime_types.rb +4 -0
  108. data/spec/dummy/config/initializers/session_store.rb +3 -0
  109. data/spec/dummy/config/initializers/simple_form.rb +145 -0
  110. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  111. data/spec/dummy/config/locales/en.yml +23 -0
  112. data/spec/dummy/config/locales/simple_form.en.yml +26 -0
  113. data/spec/dummy/config/loldesign_publisher.yml +12 -0
  114. data/spec/dummy/config/routes.rb +59 -0
  115. data/spec/dummy/config/secrets.yml +22 -0
  116. data/spec/dummy/db/development.sqlite3 +0 -0
  117. data/spec/dummy/db/migrate/20141126120426_create_users.rb +13 -0
  118. data/spec/dummy/db/schema.rb +26 -0
  119. data/spec/dummy/db/test.sqlite3 +0 -0
  120. data/spec/dummy/lib/templates/erb/scaffold/_form.html.erb +13 -0
  121. data/spec/dummy/log/development.log +16 -0
  122. data/spec/dummy/log/test.log +158 -0
  123. data/spec/dummy/public/404.html +67 -0
  124. data/spec/dummy/public/422.html +67 -0
  125. data/spec/dummy/public/500.html +66 -0
  126. data/spec/dummy/public/favicon.ico +0 -0
  127. data/spec/factories/user_factory.rb +10 -0
  128. data/spec/spec_helper.rb +18 -0
  129. metadata +383 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: abe549abd1c1c76e3a8d8afb3261f77972ea0f19
4
+ data.tar.gz: d50e75cbc030f269f45947bf0c52aeb188d7d331
5
+ SHA512:
6
+ metadata.gz: ee32e0327a9d0e28488195d5391137672d77458a5c7a2896361e2b796190c137e01c86eace4740146505bb869a9ed07db357df2986b9b1d5f20212d4bd814b45
7
+ data.tar.gz: a473d930a76c6f6b220d607ebdd6498315a8d18c5ab78df0113ce03e415b06b7b877b55a7a91429f0c7941bd1f85497cd96be05f63435771e02b4edea8ce30b9
data/MIT-LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright 2014 YOURNAME
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.rdoc ADDED
@@ -0,0 +1,3 @@
1
+ = LoldesignPublisher
2
+
3
+ This project rocks and uses MIT-LICENSE.
data/Rakefile ADDED
@@ -0,0 +1,21 @@
1
+ begin
2
+ require 'bundler/setup'
3
+ rescue LoadError
4
+ puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
5
+ end
6
+
7
+ require 'rdoc/task'
8
+
9
+ RDoc::Task.new(:rdoc) do |rdoc|
10
+ rdoc.rdoc_dir = 'rdoc'
11
+ rdoc.title = 'LoldesignPublisher'
12
+ rdoc.options << '--line-numbers'
13
+ rdoc.rdoc_files.include('README.rdoc')
14
+ rdoc.rdoc_files.include('lib/**/*.rb')
15
+ end
16
+
17
+
18
+
19
+
20
+ Bundler::GemHelper.install_tasks
21
+
Binary file
@@ -0,0 +1,81 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
4
+ <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
5
+ width="226.018px" height="136.694px" viewBox="0 0 226.018 136.694" enable-background="new 0 0 226.018 136.694"
6
+ xml:space="preserve">
7
+ <g>
8
+ <g>
9
+ <path fill="#F15D22" d="M0,80.306h6.128v37.926h21.33v5.115H0V80.306z"/>
10
+ <path fill="#F15D22" d="M30.522,97.122c2.043-3.488,5.908-5.233,11.597-5.233c0.36,0,0.721,0.011,1.082,0.029
11
+ c0.361,0.021,0.721,0.05,1.082,0.088c3.004,0.433,5.768,1.922,8.292,4.47c2.523,2.548,3.786,6.724,3.786,12.523
12
+ c0,0.863-0.09,1.862-0.27,2.999c-0.181,1.137-0.512,2.314-0.992,3.528c-0.882,2.117-2.324,4.058-4.327,5.821
13
+ c-2.002,1.764-4.887,2.724-8.651,2.881c-4.486,0.235-8.051-0.852-10.696-3.263c-2.643-2.411-3.965-6.399-3.965-11.967
14
+ C27.458,104.57,28.479,100.611,30.522,97.122z M35.689,117.291c1.804,1.843,3.746,2.764,5.829,2.764c0.039,0,0.069,0,0.089,0
15
+ s0.05,0,0.091,0c2.362-0.039,4.516-1.156,6.458-3.352s2.773-5.233,2.494-9.114c-0.12-3.764-1.111-6.595-2.974-8.497
16
+ c-1.863-1.9-3.915-2.852-6.159-2.852c-2.283,0-4.356,1.02-6.219,3.057c-1.863,2.04-2.734,5.116-2.613,9.231
17
+ C32.886,112.527,33.888,115.448,35.689,117.291z"/>
18
+ <path fill="#F15D22" d="M58.281,80.306h5.228v43.041h-5.228V80.306z"/>
19
+ <path d="M86.7,80.306c0.521,0,1.042,0.028,1.563,0.087c0.52,0.06,1.042,0.129,1.562,0.207c3.604,0.745,6.899,2.764,9.885,6.056
20
+ c2.982,3.293,4.476,7.958,4.476,13.995c0,0.98-0.041,1.969-0.12,2.969c-0.082,1.001-0.202,2.01-0.362,3.028
21
+ c-0.681,4.194-2.312,8.026-4.896,11.495c-2.583,3.47-6.62,5.204-12.108,5.204H69.157V80.306H86.7z M88.084,117.82
22
+ c3.163,0,5.577-1.637,7.24-4.91c1.662-3.272,2.494-6.909,2.494-10.908c0-0.078,0-0.155,0-0.234c0-0.078,0-0.177,0-0.295
23
+ c-0.08-4.035-1.063-7.732-2.945-11.082c-1.884-3.354-4.768-5.028-8.652-5.028H74.865v32.458H88.084z"/>
24
+ <path d="M109.294,95.857c2.282-2.959,5.786-4.438,10.515-4.438c4.887,0,8.312,1.401,10.274,4.204
25
+ c1.962,2.803,3.185,5.87,3.665,9.202c0.121,0.862,0.2,1.726,0.24,2.587c0.039,0.863,0.06,1.705,0.06,2.527h-23.193
26
+ c0.12,3.528,0.991,6.078,2.614,7.645c1.622,1.568,3.414,2.354,5.378,2.354c0.078,0,0.169,0,0.27,0c0.1,0,0.189,0,0.271,0
27
+ c1.762-0.119,3.433-0.727,5.016-1.823c1.582-1.098,2.734-2.588,3.455-4.47h5.228c-0.24,3.215-1.562,5.724-3.966,7.527
28
+ c-2.403,1.803-5.508,2.822-9.312,3.057c-4.566-0.157-7.933-1.382-10.095-3.674c-2.163-2.294-3.546-4.812-4.146-7.557
29
+ c-0.241-0.941-0.392-1.871-0.451-2.793c-0.06-0.921-0.051-1.794,0.03-2.616C105.628,102.729,107.01,98.818,109.294,95.857z
30
+ M128.341,105.295c-0.241-3.135-1.183-5.516-2.825-7.145c-1.643-1.626-3.465-2.439-5.467-2.439c-0.081,0-0.161,0-0.24,0
31
+ c-0.082,0-0.162,0-0.24,0c-1.884,0.117-3.666,0.971-5.348,2.559c-1.683,1.586-2.805,3.93-3.366,7.025H128.341z"/>
32
+ <path d="M136.211,114.115c0.801,0,1.623,0,2.463,0c0.08,0,0.17,0,0.271,0c0.1,0,0.21,0,0.331,0
33
+ c0.239,2.352,1.142,4.038,2.704,5.057c1.561,1.02,3.264,1.549,5.105,1.588c0.039,0,0.07,0,0.092,0c0.019,0,0.049,0,0.09,0
34
+ c1.922,0,3.674-0.451,5.257-1.352c1.582-0.902,2.374-2.059,2.374-3.47c0.12-1.647-0.602-2.804-2.164-3.47
35
+ s-3.404-1.235-5.527-1.705c-0.361-0.077-0.731-0.156-1.111-0.235c-0.381-0.079-0.771-0.177-1.172-0.294
36
+ c-2.604-0.588-4.967-1.509-7.09-2.764c-2.124-1.254-3.064-3.527-2.825-6.82c0.241-2.548,1.171-4.537,2.795-5.969
37
+ c1.622-1.43,4.315-2.361,8.081-2.793c0.682,0,1.401,0.02,2.164,0.06c0.76,0.04,1.542,0.116,2.344,0.234
38
+ c2.002,0.315,3.845,1.099,5.527,2.353c1.682,1.254,2.604,3.449,2.764,6.585h-5.228c-0.281-1.725-1.032-2.958-2.253-3.704
39
+ c-1.223-0.744-2.554-1.117-3.996-1.117c-0.121,0-0.231,0-0.33,0c-0.102,0-0.211,0-0.331,0c-1.683,0.117-3.235,0.598-4.657,1.44
40
+ s-2.133,1.814-2.133,2.911c-0.119,1.568,0.602,2.685,2.164,3.352c1.562,0.666,3.424,1.255,5.588,1.764
41
+ c0.4,0.08,0.801,0.167,1.201,0.265c0.4,0.099,0.801,0.187,1.201,0.265c2.564,0.627,4.908,1.52,7.03,2.676
42
+ c2.123,1.156,3.186,3.165,3.186,6.027c0,0.039,0,0.087,0,0.146c0,0.059,0,0.107,0,0.146s0,0.088,0,0.146s0,0.109,0,0.148
43
+ c0,0.117,0,0.234,0,0.353c0,0.117,0,0.234,0,0.353c-0.201,2.117-1.362,4.067-3.485,5.85c-2.123,1.784-5.228,2.773-9.313,2.971
44
+ c-0.041,0-0.091,0-0.149,0c-0.061,0-0.111,0-0.151,0c-0.081-0.04-0.14-0.06-0.181-0.06c-0.039,0-0.101,0-0.18,0
45
+ c-0.682-0.04-1.402-0.099-2.162-0.177c-0.762-0.078-1.524-0.195-2.284-0.354c-2.044-0.431-3.917-1.352-5.617-2.763
46
+ c-1.704-1.41-2.555-3.958-2.555-7.644C134.689,114.115,135.411,114.115,136.211,114.115z"/>
47
+ <path d="M162.049,80.306h5.227v6.467h-5.227V80.306z M162.049,92.301h5.227v31.046h-5.227V92.301z"/>
48
+ <path d="M172.713,96.034c2.383-3.077,5.938-4.615,10.666-4.615c1.402,0,2.674,0.323,3.814,0.97
49
+ c1.141,0.647,2.094,1.344,2.854,2.088c0.28,0.274,0.53,0.539,0.751,0.794c0.22,0.255,0.43,0.499,0.632,0.734v-3.704h5.167v29.635
50
+ c0,5.762-1.473,9.662-4.417,11.701c-2.944,2.038-6.198,3.058-9.764,3.058c-0.682,0-1.483-0.06-2.403-0.177
51
+ c-0.922-0.117-1.885-0.313-2.885-0.588c-1.764-0.549-3.375-1.51-4.836-2.881c-1.463-1.373-2.194-3.391-2.194-6.057l5.228,0.06
52
+ c-0.119,1.449,0.562,2.636,2.044,3.557c1.48,0.921,3.163,1.382,5.047,1.382c0.159,0,0.33,0,0.511,0c0.18,0,0.369-0.021,0.57-0.059
53
+ c2.004-0.196,3.836-1.05,5.498-2.559c1.662-1.51,2.494-3.891,2.494-7.144c0-0.274,0-0.548,0-0.823c0-0.274-0.021-0.548-0.06-0.824
54
+ c-0.962,0.941-1.944,1.707-2.945,2.294c-1.002,0.589-2.023,1.038-3.064,1.353c-0.601,0.196-1.201,0.343-1.803,0.441
55
+ c-0.601,0.098-1.201,0.147-1.802,0.147c-3.565,0.038-6.641-1.433-9.224-4.411c-2.584-2.978-3.735-6.781-3.455-11.407
56
+ C169.138,103.434,170.33,99.111,172.713,96.034z M177.43,117.35c1.603,1.999,3.385,3.019,5.348,3.057c0.039,0,0.091,0,0.15,0
57
+ c0.061,0,0.109,0,0.15,0c2.202-0.117,4.206-1.303,6.008-3.557c1.804-2.255,2.585-5.184,2.345-8.791
58
+ c0.079-3.723-0.702-6.487-2.345-8.291c-1.643-1.802-3.506-2.705-5.588-2.705c-0.039,0-0.1,0-0.18,0s-0.141,0-0.18,0
59
+ c-2.005,0.119-3.855,1.06-5.559,2.823c-1.703,1.765-2.614,4.331-2.734,7.703C174.966,112.097,175.829,115.35,177.43,117.35z"/>
60
+ <path d="M200.923,92.301h5.167v4.175c0.359-1.295,1.542-2.431,3.546-3.411c2.002-0.979,4.165-1.508,6.488-1.587
61
+ c0.122,0,0.23,0,0.331,0c0.1,0,0.19,0,0.271,0c2.482-0.039,4.706,0.628,6.669,1.999c1.963,1.373,2.824,3.764,2.584,7.174v22.696
62
+ h-5.168v-21.756c0-1.804-0.581-3.146-1.742-4.028c-1.162-0.881-2.504-1.322-4.025-1.322c-0.241,0-0.492,0.01-0.752,0.029
63
+ c-0.26,0.021-0.51,0.049-0.75,0.089c-1.883,0.353-3.596,1.313-5.139,2.88c-1.541,1.568-2.312,3.744-2.312,6.527v17.581h-5.167
64
+ V92.301z"/>
65
+ </g>
66
+ <path fill="#F15E24" d="M220.729,21.389c-0.006,0-0.011,0-0.018,0c-0.066,0-0.133,0.007-0.196,0.021
67
+ c-0.147,0.032-0.281,0.1-0.393,0.195c-0.092,0.077-0.169,0.172-0.226,0.281c-0.039,0.08-0.069,0.165-0.086,0.256
68
+ c-0.83,4.136-2.015,8.292-3.519,12.353c-8.435,22.803-25.88,39.353-41.479,39.353c-2.395,0-4.715-0.393-6.898-1.166
69
+ c-5.59-1.98-10.131-6.418-13.135-12.831c-5.715-12.206-5.354-29.692,0.969-46.777c1.494-4.054,3.307-7.993,5.385-11.71
70
+ c0.236-0.422,0.104-0.956-0.305-1.218C160.676,0.047,160.504,0,160.334,0c-0.283,0-0.561,0.13-0.738,0.374
71
+ c-4.664,6.354-8.496,13.54-11.387,21.359c-6.919,18.706-7.281,37.919-0.969,51.397c3.428,7.317,8.65,12.392,15.105,14.68
72
+ c2.535,0.897,5.225,1.354,7.996,1.354c8.451,0,17.691-4.281,26.018-12.056c8.377-7.821,15.494-18.898,20.041-31.191
73
+ c2.885-7.797,4.641-15.695,5.221-23.478c0.006-0.044,0.01-0.088,0.01-0.133C221.631,21.804,221.229,21.396,220.729,21.389z"/>
74
+ <g>
75
+ <path d="M181.575,35.736c-8.854-3.135-18.664,1.462-21.922,10.269c-3.257,8.806,1.273,18.484,10.125,21.62
76
+ c8.846,3.135,18.66-1.462,21.92-10.268C194.954,48.552,190.42,38.871,181.575,35.736z M172.344,61.151
77
+ c-5.034-1.941-7.628-7.331-6.078-12.311c0.51,4.02,3.193,7.647,7.314,9.234c4.122,1.588,8.612,0.726,11.786-1.875
78
+ C183.033,60.878,177.378,63.09,172.344,61.151z"/>
79
+ </g>
80
+ </g>
81
+ </svg>
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
4
+ <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
5
+ width="5.35px" height="10px" viewBox="0 0 5.35 10" enable-background="new 0 0 5.35 10" xml:space="preserve">
6
+ <path fill="#494146" d="M0.117,9.314c-0.156,0.156-0.156,0.411,0,0.568c0.155,0.157,0.408,0.157,0.563,0l4.552-4.598
7
+ c0.155-0.157,0.155-0.412,0-0.569L0.681,0.118c-0.156-0.157-0.408-0.157-0.563,0s-0.156,0.412,0,0.569l4.152,4.313L0.117,9.314z"/>
8
+ </svg>
@@ -0,0 +1,51 @@
1
+ jQuery(document).ready(function($) {
2
+ new activableOption();
3
+ });
4
+
5
+ var activableOption = function(){
6
+ var _this = this;
7
+ this.$links = $('.activable');
8
+
9
+ this.startup = function(){
10
+ if(!this.$links[0]){ return false; }
11
+
12
+ this.$links.on('change', function(event) {
13
+ event.preventDefault();
14
+
15
+ if($(this).is(':checked')){
16
+ _this.active($(this));
17
+ }else{
18
+ _this.inactive($(this));
19
+ }
20
+ });
21
+ },
22
+
23
+ this.active = function($link){
24
+ $.ajax({
25
+ url: '/loldesign_publisher/activables/'+$link.data('resource')+'/'+$link.data('id')+'.json',
26
+ type: 'POST',
27
+ dataType: 'json'
28
+ })
29
+ .done(function() {
30
+ $link.val(true);
31
+ })
32
+ .fail(function() {
33
+ console.log("error");
34
+ });
35
+ },
36
+ this.inactive = function($link){
37
+ $.ajax({
38
+ url: '/loldesign_publisher/activables/'+$link.data('resource')+'/'+$link.data('id')+'.json',
39
+ type: 'DELETE',
40
+ dataType: 'json'
41
+ })
42
+ .done(function() {
43
+ $link.val(false);
44
+ })
45
+ .fail(function() {
46
+ console.log("error");
47
+ });
48
+ },
49
+
50
+ this.startup();
51
+ }
@@ -0,0 +1,37 @@
1
+ /* Brazilian initialisation for the jQuery UI date picker plugin. */
2
+ /* Written by Leonildo Costa Silva (leocsilva@gmail.com). */
3
+ (function( factory ) {
4
+ if ( typeof define === "function" && define.amd ) {
5
+
6
+ // AMD. Register as an anonymous module.
7
+ define([ "../datepicker" ], factory );
8
+ } else {
9
+
10
+ // Browser globals
11
+ factory( jQuery.datepicker );
12
+ }
13
+ }(function( datepicker ) {
14
+
15
+ datepicker.regional['pt-BR'] = {
16
+ closeText: 'Fechar',
17
+ prevText: '&#x3C;Anterior',
18
+ nextText: 'Próximo&#x3E;',
19
+ currentText: 'Hoje',
20
+ monthNames: ['Janeiro','Fevereiro','Março','Abril','Maio','Junho',
21
+ 'Julho','Agosto','Setembro','Outubro','Novembro','Dezembro'],
22
+ monthNamesShort: ['Jan','Fev','Mar','Abr','Mai','Jun',
23
+ 'Jul','Ago','Set','Out','Nov','Dez'],
24
+ dayNames: ['Domingo','Segunda-feira','Terça-feira','Quarta-feira','Quinta-feira','Sexta-feira','Sábado'],
25
+ dayNamesShort: ['Dom','Seg','Ter','Qua','Qui','Sex','Sáb'],
26
+ dayNamesMin: ['Dom','Seg','Ter','Qua','Qui','Sex','Sáb'],
27
+ weekHeader: 'Sm',
28
+ dateFormat: 'dd/mm/yy',
29
+ firstDay: 0,
30
+ isRTL: false,
31
+ showMonthAfterYear: false,
32
+ yearSuffix: ''};
33
+ datepicker.setDefaults(datepicker.regional['pt-BR']);
34
+
35
+ return datepicker.regional['pt-BR'];
36
+
37
+ }));
@@ -0,0 +1,47 @@
1
+ /**
2
+ * Gumby Init
3
+ */
4
+
5
+ !function($) {
6
+
7
+ 'use strict';
8
+
9
+ // not touch device or no touch events required so auto initialize here
10
+ if((!Gumby.touchDevice || !Gumby.touchEvents) && Gumby.autoInit) {
11
+ window.Gumby.init();
12
+
13
+ // load jQuery mobile touch events
14
+ } else if(Gumby.touchEvents && Gumby.touchDevice) {
15
+ Gumby.debug('Loading jQuery mobile touch events');
16
+ // set timeout to 2sec
17
+ yepnope.errorTimeout = 2000;
18
+ Modernizr.load({
19
+ test: Modernizr.touch,
20
+ yep: Gumby.touchEvents+'/jquery.mobile.custom.min.js',
21
+ complete: function() {
22
+ // error loading jQuery mobile
23
+ if(!$.mobile) {
24
+ Gumby.error('Error loading jQuery mobile touch events');
25
+ }
26
+
27
+ // if not auto initializing
28
+ // this will allow helpers to fire when initialized
29
+ Gumby.touchEventsLoaded = true;
30
+
31
+ // auto initialize
32
+ if(Gumby.autoInit) {
33
+ window.Gumby.init();
34
+
35
+ // if already manually initialized then fire helpers
36
+ } else if(Gumby.uiModulesReady) {
37
+ Gumby.helpers();
38
+ }
39
+ }
40
+ });
41
+ }
42
+
43
+ // if AMD return Gumby object to define
44
+ if(typeof define == "function" && define.amd) {
45
+ define(window.Gumby);
46
+ }
47
+ }(jQuery);
@@ -0,0 +1,258 @@
1
+ /**
2
+ * Gumby Framework
3
+ * ---------------
4
+ *
5
+ * Follow @gumbycss on twitter and spread the love.
6
+ * We worked super hard on making this awesome and released it to the web.
7
+ * All we ask is you leave this intact. #gumbyisawesome
8
+ *
9
+ * Gumby Framework
10
+ * http://gumbyframework.com
11
+ *
12
+ * Built with love by your friends @digitalsurgeons
13
+ * http://www.digitalsurgeons.com
14
+ *
15
+ * Free to use under the MIT license.
16
+ * http://www.opensource.org/licenses/mit-license.php
17
+ */
18
+ !function($) {
19
+
20
+ 'use strict';
21
+
22
+ function Gumby() {
23
+ this.$dom = $(document);
24
+ this.$html = this.$dom.find('html');
25
+ this.isOldie = !!this.$html.hasClass('oldie');
26
+ this.click = 'click';
27
+ this.onReady = this.onOldie = this.onTouch = false;
28
+ this.autoInit = $('script[gumby-init]').attr('gumby-init') === 'false' ? false : true;
29
+ this.debugMode = Boolean($('script[gumby-debug]').length);
30
+ this.touchDevice = !!(Modernizr.touch || window.navigator.userAgent.indexOf("Windows Phone") > 0);
31
+ this.gumbyTouch = false;
32
+ this.touchEvents = 'js/libs';
33
+ this.breakpoint = Number($('script[gumby-breakpoint]').attr('gumby-breakpoint')) || 768;
34
+ this.touchEventsLoaded = false;
35
+ this.uiModulesReady = false;
36
+ this.uiModules = {};
37
+ this.inits = {};
38
+
39
+ // jQuery mobile touch events
40
+ var touch = $('script[gumby-touch]').attr('gumby-touch'),
41
+ path = $('script[gumby-path]').attr('gumby-path');
42
+
43
+ // do not use touch events
44
+ if(touch === 'false') {
45
+ this.touchEvents = false;
46
+
47
+ // set path to jQuery mobile
48
+ // support touch/path attrs for backwards compatibility
49
+ } else {
50
+ if(touch) {
51
+ this.touchEvents = touch;
52
+ } else if(path) {
53
+ this.touchEvents = path;
54
+ }
55
+ }
56
+
57
+ // update click property to bind to click/tap
58
+ if(this.touchDevice) {
59
+ this.click += ' tap';
60
+ }
61
+
62
+ // add gumby-touch/gumby-no-touch classes
63
+ // gumby touch == touch enabled && smaller than defined breakpoint
64
+ if(this.touchDevice && $(window).width() < this.breakpoint) {
65
+ this.$html.addClass('gumby-touch');
66
+ this.gumbyTouch = true;
67
+ } else {
68
+ this.$html.addClass('gumby-no-touch');
69
+ }
70
+
71
+ if(this.debugMode) {
72
+ this.debug('Gumby is in debug mode');
73
+ }
74
+ }
75
+
76
+ // initialize Gumby
77
+ Gumby.prototype.init = function(options) {
78
+ var scope = this,
79
+ opts = options ? options : {};
80
+
81
+ // call ready() code when dom is ready
82
+ this.$dom.ready(function() {
83
+ if(opts.debug) {
84
+ scope.debugMode = true;
85
+ }
86
+
87
+ scope.debug("Initializing Gumby");
88
+
89
+ // init UI modules
90
+ var mods = opts.uiModules ? opts.uiModules : false;
91
+ scope.initUIModules(mods);
92
+
93
+ if(scope.onReady) {
94
+ scope.onReady();
95
+ }
96
+
97
+ // call oldie() callback if applicable
98
+ if(scope.isOldie && scope.onOldie) {
99
+ scope.onOldie();
100
+ }
101
+
102
+ // call touch() callback if applicable
103
+ if(Modernizr.touch && scope.onTouch) {
104
+ scope.onTouch();
105
+ }
106
+ });
107
+
108
+ return this;
109
+ };
110
+
111
+ Gumby.prototype.helpers = function() {
112
+ if(this.onReady) {
113
+ this.onReady();
114
+ }
115
+
116
+ // call oldie() callback if applicable
117
+ if(this.isOldie && this.onOldie) {
118
+ this.onOldie();
119
+ }
120
+
121
+ // call touch() callback if applicable
122
+ if(Modernizr.touch && this.onTouch) {
123
+ this.onTouch();
124
+ }
125
+ };
126
+
127
+ // public helper - set Gumby ready callback
128
+ Gumby.prototype.ready = function(code) {
129
+ if(code && typeof code === 'function') {
130
+ this.onReady = code;
131
+ }
132
+
133
+ return this;
134
+ };
135
+
136
+ // public helper - set oldie callback
137
+ Gumby.prototype.oldie = function(code) {
138
+ if(code && typeof code === 'function') {
139
+ this.onOldie = code;
140
+ }
141
+
142
+ return this;
143
+ };
144
+
145
+ // public helper - set touch callback
146
+ Gumby.prototype.touch = function(code) {
147
+ if(code && typeof code === 'function') {
148
+ this.onTouch = code;
149
+ }
150
+
151
+ return this;
152
+ };
153
+
154
+ // print to console if available and we're in debug mode
155
+ Gumby.prototype.console = function(type, data) {
156
+ if(!this.debugMode || !window.console) { return; }
157
+ console[console[type] ? type : 'log'](data.length > 1 ? Array.prototype.slice.call(data) : data[0]);
158
+ };
159
+
160
+ // pass args onto console method for output
161
+ Gumby.prototype.log = function() { this.console('log', arguments); };
162
+ Gumby.prototype.debug = function() { this.console('debug', arguments); };
163
+ Gumby.prototype.warn = function() { this.console('warn', arguments); };
164
+ Gumby.prototype.error = function() { this.console('error', arguments); };
165
+
166
+ // public helper - return debuggin object including uiModules object
167
+ Gumby.prototype.dump = function() {
168
+ return {
169
+ $dom: this.$dom,
170
+ isOldie: this.isOldie,
171
+ touchEvents: this.touchEvents,
172
+ debugMode: this.debugMode,
173
+ autoInit: this.autoInit,
174
+ uiModules: this.uiModules,
175
+ click: this.click
176
+ };
177
+ };
178
+
179
+ // grab attribute value, testing data- gumby- and no prefix
180
+ Gumby.prototype.selectAttr = function() {
181
+ var i = 0;
182
+
183
+ // any number of attributes can be passed
184
+ for(; i < arguments.length; i++) {
185
+ // various formats
186
+ var attr = arguments[i],
187
+ dataAttr = 'data-'+arguments[i],
188
+ gumbyAttr = 'gumby-'+arguments[i];
189
+
190
+ // first test for data-attr
191
+ if(this.is('['+dataAttr+']')) {
192
+ return this.attr(dataAttr) ? this.attr(dataAttr) : true;
193
+
194
+ // next test for gumby-attr
195
+ } else if(this.is('['+gumbyAttr+']')) {
196
+ return this.attr(gumbyAttr) ? this.attr(gumbyAttr) : true;
197
+
198
+ // finally no prefix
199
+ } else if(this.is('['+attr+']')) {
200
+ return this.attr(attr) ? this.attr(attr) : true;
201
+ }
202
+ }
203
+
204
+ // none found
205
+ return false;
206
+ };
207
+
208
+ // add an initialisation method
209
+ Gumby.prototype.addInitalisation = function(ref, code) {
210
+ this.inits[ref] = code;
211
+ };
212
+
213
+ // initialize a uiModule, single / array of module refs
214
+ Gumby.prototype.initialize = function(ref, all) {
215
+ if(typeof ref === 'object') {
216
+ var i = 0;
217
+ for(i; i < ref.length; i++) {
218
+ if(!this.inits[ref[i]] || typeof this.inits[ref[i]] !== 'function') {
219
+ this.error('Error initializing module: '+ref[i]);
220
+ continue;
221
+ }
222
+
223
+ this.inits[ref[i]](all);
224
+ }
225
+ } else if(this.inits[ref] && typeof this.inits[ref] === 'function') {
226
+ this.inits[ref](all);
227
+ } else {
228
+ this.error('Error initializing module: '+ref);
229
+ }
230
+
231
+ return this;
232
+ };
233
+
234
+ // store a UI module
235
+ Gumby.prototype.UIModule = function(data) {
236
+ var module = data.module;
237
+ this.uiModules[module] = data;
238
+ };
239
+
240
+ // loop round and init all UI modules
241
+ Gumby.prototype.initUIModules = function(mods) {
242
+ var x, m, arr = this.uiModules;
243
+
244
+ // only initialise specified modules
245
+ if(mods) {
246
+ arr = mods;
247
+ }
248
+
249
+ // initialise everything
250
+ for(x in arr) {
251
+ m = mods ? arr[x] : x;
252
+ this.uiModules[m].init();
253
+ }
254
+ };
255
+
256
+ window.Gumby = new Gumby();
257
+
258
+ }(jQuery);