brainsome_typus 4.0.0.beta1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (241) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +488 -0
  3. data/Gemfile +60 -0
  4. data/Gemfile.lock +205 -0
  5. data/MIT-LICENSE +20 -0
  6. data/README.md +94 -0
  7. data/Rakefile +33 -0
  8. data/TODO.md +32 -0
  9. data/app/assets/javascripts/typus/application.js +11 -0
  10. data/app/assets/javascripts/typus/custom.js +2 -0
  11. data/app/assets/javascripts/typus/jquery-1.8.3-min.js +2 -0
  12. data/app/assets/javascripts/typus/jquery.application.js +33 -0
  13. data/app/assets/stylesheets/typus/application.css +5 -0
  14. data/app/assets/stylesheets/typus/custom.css +4 -0
  15. data/app/assets/stylesheets/typus/overrides.css.scss +46 -0
  16. data/app/controllers/admin/account_controller.rb +47 -0
  17. data/app/controllers/admin/base_controller.rb +44 -0
  18. data/app/controllers/admin/dashboard_controller.rb +5 -0
  19. data/app/controllers/admin/resource_controller.rb +7 -0
  20. data/app/controllers/admin/resources_controller.rb +256 -0
  21. data/app/controllers/admin/session_controller.rb +42 -0
  22. data/app/controllers/concerns/admin/actions.rb +88 -0
  23. data/app/controllers/concerns/admin/acts_as_list.rb +26 -0
  24. data/app/controllers/concerns/admin/ancestry.rb +26 -0
  25. data/app/controllers/concerns/admin/autocomplete.rb +11 -0
  26. data/app/controllers/concerns/admin/bulk.rb +76 -0
  27. data/app/controllers/concerns/admin/featured_image.rb +22 -0
  28. data/app/controllers/concerns/admin/filters.rb +57 -0
  29. data/app/controllers/concerns/admin/format.rb +48 -0
  30. data/app/controllers/concerns/admin/headless.rb +23 -0
  31. data/app/controllers/concerns/admin/hooks.rb +4 -0
  32. data/app/controllers/concerns/admin/multisite.rb +10 -0
  33. data/app/controllers/concerns/admin/navigation.rb +26 -0
  34. data/app/controllers/concerns/admin/trash.rb +65 -0
  35. data/app/helpers/admin/base_helper.rb +59 -0
  36. data/app/helpers/admin/resources/data_types/belongs_to_helper.rb +91 -0
  37. data/app/helpers/admin/resources/data_types/boolean_helper.rb +28 -0
  38. data/app/helpers/admin/resources/data_types/date_helper.rb +16 -0
  39. data/app/helpers/admin/resources/data_types/datetime_helper.rb +19 -0
  40. data/app/helpers/admin/resources/data_types/dragonfly_helper.rb +56 -0
  41. data/app/helpers/admin/resources/data_types/float_helper.rb +2 -0
  42. data/app/helpers/admin/resources/data_types/has_and_belongs_to_many_helper.rb +53 -0
  43. data/app/helpers/admin/resources/data_types/has_many_helper.rb +66 -0
  44. data/app/helpers/admin/resources/data_types/has_one_helper.rb +36 -0
  45. data/app/helpers/admin/resources/data_types/integer_helper.rb +10 -0
  46. data/app/helpers/admin/resources/data_types/paperclip_helper.rb +36 -0
  47. data/app/helpers/admin/resources/data_types/position_helper.rb +20 -0
  48. data/app/helpers/admin/resources/data_types/selector_helper.rb +11 -0
  49. data/app/helpers/admin/resources/data_types/string_helper.rb +32 -0
  50. data/app/helpers/admin/resources/data_types/text_helper.rb +7 -0
  51. data/app/helpers/admin/resources/data_types/transversal_helper.rb +8 -0
  52. data/app/helpers/admin/resources/data_types/tree_helper.rb +26 -0
  53. data/app/helpers/admin/resources/display_helper.rb +27 -0
  54. data/app/helpers/admin/resources/filters_helper.rb +28 -0
  55. data/app/helpers/admin/resources/form_helper.rb +84 -0
  56. data/app/helpers/admin/resources/list_helper.rb +31 -0
  57. data/app/helpers/admin/resources/pagination_helper.rb +28 -0
  58. data/app/helpers/admin/resources/relationships_helper.rb +34 -0
  59. data/app/helpers/admin/resources/sidebar_helper.rb +40 -0
  60. data/app/helpers/admin/resources/table_helper.rb +66 -0
  61. data/app/helpers/admin/resources_helper.rb +25 -0
  62. data/app/mailers/admin/mailer.rb +20 -0
  63. data/app/views/admin/account/_form.html.erb +11 -0
  64. data/app/views/admin/account/forgot_password.html.erb +19 -0
  65. data/app/views/admin/account/new.html.erb +13 -0
  66. data/app/views/admin/dashboard/_sidebar.html.erb +14 -0
  67. data/app/views/admin/dashboard/index.html.erb +6 -0
  68. data/app/views/admin/dashboard/styles.html.erb +153 -0
  69. data/app/views/admin/dashboard/widgets/_applications.html.erb +44 -0
  70. data/app/views/admin/dashboard/widgets/_default.html.erb +46 -0
  71. data/app/views/admin/dashboard/widgets/_models.html.erb +23 -0
  72. data/app/views/admin/dashboard/widgets/_models_extended.html.erb +25 -0
  73. data/app/views/admin/dashboard/widgets/_resources.html.erb +23 -0
  74. data/app/views/admin/dashboard/widgets/_users.html.erb +23 -0
  75. data/app/views/admin/mailer/reset_password_instructions.html.erb +7 -0
  76. data/app/views/admin/mailer/reset_password_instructions.text.erb +7 -0
  77. data/app/views/admin/resources/_actions.html.erb +23 -0
  78. data/app/views/admin/resources/_edit.html.erb +0 -0
  79. data/app/views/admin/resources/_form.html.erb +41 -0
  80. data/app/views/admin/resources/_form_javascripts.html.erb +0 -0
  81. data/app/views/admin/resources/_form_modal.html.erb +13 -0
  82. data/app/views/admin/resources/_index.html.erb +0 -0
  83. data/app/views/admin/resources/_new.html.erb +0 -0
  84. data/app/views/admin/resources/_pagination.html.erb +15 -0
  85. data/app/views/admin/resources/_show.html.erb +0 -0
  86. data/app/views/admin/resources/edit/_actions.html.erb +7 -0
  87. data/app/views/admin/resources/edit/_recently_edited.html.erb +8 -0
  88. data/app/views/admin/resources/edit.html.erb +22 -0
  89. data/app/views/admin/resources/index.html.erb +81 -0
  90. data/app/views/admin/resources/new.html.erb +21 -0
  91. data/app/views/admin/resources/show.html.erb +27 -0
  92. data/app/views/admin/session/new.html.erb +21 -0
  93. data/app/views/admin/shared/_head.html.erb +15 -0
  94. data/app/views/admin/shared/_modals.html.erb +3 -0
  95. data/app/views/admin/shared/_sidebar_placeholder.html.erb +0 -0
  96. data/app/views/admin/templates/README.md +5 -0
  97. data/app/views/admin/templates/_belongs_to.html.erb +13 -0
  98. data/app/views/admin/templates/_boolean.html.erb +6 -0
  99. data/app/views/admin/templates/_date.html.erb +6 -0
  100. data/app/views/admin/templates/_datetime.html.erb +7 -0
  101. data/app/views/admin/templates/_dragonfly.html.erb +8 -0
  102. data/app/views/admin/templates/_dragonfly_form_preview.html.erb +23 -0
  103. data/app/views/admin/templates/_dragonfly_preview.html.erb +12 -0
  104. data/app/views/admin/templates/_has_and_belongs_to_many.html.erb +21 -0
  105. data/app/views/admin/templates/_has_many.html.erb +20 -0
  106. data/app/views/admin/templates/_has_one.html.erb +14 -0
  107. data/app/views/admin/templates/_paperclip.html.erb +7 -0
  108. data/app/views/admin/templates/_paperclip_preview.html.erb +3 -0
  109. data/app/views/admin/templates/_password.html.erb +6 -0
  110. data/app/views/admin/templates/_position.html.erb +6 -0
  111. data/app/views/admin/templates/_profile_sidebar.html.erb +4 -0
  112. data/app/views/admin/templates/_selector.html.erb +6 -0
  113. data/app/views/admin/templates/_string.html.erb +6 -0
  114. data/app/views/admin/templates/_string_with_preview.html.erb +11 -0
  115. data/app/views/admin/templates/_text.html.erb +11 -0
  116. data/app/views/admin/templates/_text_with_ckeditor.html.erb +24 -0
  117. data/app/views/admin/templates/_text_with_ckeditor_and_assets.html.erb +38 -0
  118. data/app/views/admin/templates/_time.html.erb +9 -0
  119. data/app/views/admin/templates/_tree.html.erb +6 -0
  120. data/app/views/admin/templates/modals/_belongs_to.html.erb +56 -0
  121. data/app/views/admin/templates/modals/_dragonfly.html.erb +9 -0
  122. data/app/views/admin/templates/modals/_has_and_belongs_to_many.html.erb +19 -0
  123. data/app/views/admin/templates/modals/_has_many.html.erb +53 -0
  124. data/app/views/helpers/admin/base/_apps.html.erb +38 -0
  125. data/app/views/helpers/admin/base/_breadcrumbs.html.erb +6 -0
  126. data/app/views/helpers/admin/base/_flash_message.html.erb +3 -0
  127. data/app/views/helpers/admin/base/_login_info.html.erb +37 -0
  128. data/app/views/helpers/admin/dashboard/_resources.html.erb +19 -0
  129. data/app/views/helpers/admin/resources/_actions.html.erb +18 -0
  130. data/app/views/helpers/admin/resources/_errors.html.erb +12 -0
  131. data/app/views/helpers/admin/resources/_filters.html.erb +14 -0
  132. data/app/views/helpers/admin/resources/_search.html.erb +14 -0
  133. data/app/views/helpers/admin/resources/_sidebar.html.erb +17 -0
  134. data/app/views/helpers/admin/resources/_table.html.erb +47 -0
  135. data/app/views/layouts/admin/base.html.erb +40 -0
  136. data/app/views/layouts/admin/headless.html.erb +1 -0
  137. data/app/views/layouts/admin/session.html.erb +44 -0
  138. data/config/locales/typus.ca.models.yml +17 -0
  139. data/config/locales/typus.ca.yml +78 -0
  140. data/config/locales/typus.de.models.yml +17 -0
  141. data/config/locales/typus.de.yml +98 -0
  142. data/config/locales/typus.el.models.yml +17 -0
  143. data/config/locales/typus.el.yml +79 -0
  144. data/config/locales/typus.es.models.yml +18 -0
  145. data/config/locales/typus.es.yml +91 -0
  146. data/config/locales/typus.fr.models.yml +18 -0
  147. data/config/locales/typus.fr.yml +83 -0
  148. data/config/locales/typus.hu.models.yml +17 -0
  149. data/config/locales/typus.hu.yml +77 -0
  150. data/config/locales/typus.it.models.yml +18 -0
  151. data/config/locales/typus.it.yml +86 -0
  152. data/config/locales/typus.locale.models.yml.template +17 -0
  153. data/config/locales/typus.locale.yml.template +78 -0
  154. data/config/locales/typus.pt-BR.models.yml +17 -0
  155. data/config/locales/typus.pt-BR.yml +77 -0
  156. data/config/locales/typus.pt-PT.models.yml +17 -0
  157. data/config/locales/typus.pt-PT.yml +85 -0
  158. data/config/locales/typus.ru.models.yml +17 -0
  159. data/config/locales/typus.ru.yml +77 -0
  160. data/config/locales/typus.zh-CN.models.yml +17 -0
  161. data/config/locales/typus.zh-CN.yml +76 -0
  162. data/config/routes.rb +46 -0
  163. data/lib/generators/templates/config/initializers/typus.rb +35 -0
  164. data/lib/generators/templates/config/initializers/typus_authentication.rb +18 -0
  165. data/lib/generators/templates/config/initializers/typus_resources.rb +24 -0
  166. data/lib/generators/templates/config/typus/README +58 -0
  167. data/lib/generators/templates/config/typus/application.yml +3 -0
  168. data/lib/generators/templates/config/typus/application_roles.yml +4 -0
  169. data/lib/generators/templates/config/typus/typus.yml +15 -0
  170. data/lib/generators/templates/config/typus/typus_roles.yml +4 -0
  171. data/lib/generators/templates/controller.erb +2 -0
  172. data/lib/generators/templates/migration.erb +22 -0
  173. data/lib/generators/templates/view.html.erb +13 -0
  174. data/lib/generators/typus/config_generator.rb +67 -0
  175. data/lib/generators/typus/controller_generator.rb +25 -0
  176. data/lib/generators/typus/initializers_generator.rb +20 -0
  177. data/lib/generators/typus/migration_generator.rb +94 -0
  178. data/lib/generators/typus/typus_generator.rb +52 -0
  179. data/lib/generators/typus/views_generator.rb +19 -0
  180. data/lib/support/active_record.rb +42 -0
  181. data/lib/support/fake_user.rb +47 -0
  182. data/lib/support/hash.rb +12 -0
  183. data/lib/support/object.rb +9 -0
  184. data/lib/support/string.rb +40 -0
  185. data/lib/tasks/typus.rake +11 -0
  186. data/lib/typus/authentication/base.rb +24 -0
  187. data/lib/typus/authentication/devise.rb +19 -0
  188. data/lib/typus/authentication/http_basic.rb +18 -0
  189. data/lib/typus/authentication/none.rb +15 -0
  190. data/lib/typus/authentication/none_with_role.rb +15 -0
  191. data/lib/typus/authentication/session.rb +123 -0
  192. data/lib/typus/configuration.rb +41 -0
  193. data/lib/typus/engine.rb +17 -0
  194. data/lib/typus/i18n.rb +48 -0
  195. data/lib/typus/orm/active_record/admin_user.rb +84 -0
  196. data/lib/typus/orm/active_record/class_methods.rb +104 -0
  197. data/lib/typus/orm/active_record/instance_methods.rb +76 -0
  198. data/lib/typus/orm/active_record/search.rb +44 -0
  199. data/lib/typus/orm/active_record.rb +10 -0
  200. data/lib/typus/orm/base/class_methods.rb +184 -0
  201. data/lib/typus/orm/base/search.rb +70 -0
  202. data/lib/typus/regex.rb +11 -0
  203. data/lib/typus/resources.rb +55 -0
  204. data/lib/typus/version.rb +10 -0
  205. data/lib/typus.rb +212 -0
  206. data/typus.gemspec +32 -0
  207. data/vendor/assets/adapt/css/1200.css +357 -0
  208. data/vendor/assets/adapt/css/1200.min.css +1 -0
  209. data/vendor/assets/adapt/css/1560.css +357 -0
  210. data/vendor/assets/adapt/css/1560.min.css +1 -0
  211. data/vendor/assets/adapt/css/720.css +357 -0
  212. data/vendor/assets/adapt/css/720.min.css +1 -0
  213. data/vendor/assets/adapt/css/960.css +357 -0
  214. data/vendor/assets/adapt/css/960.min.css +1 -0
  215. data/vendor/assets/adapt/css/fluid.css +345 -0
  216. data/vendor/assets/adapt/css/fluid.min.css +1 -0
  217. data/vendor/assets/adapt/css/master.css +120 -0
  218. data/vendor/assets/adapt/css/mobile.css +20 -0
  219. data/vendor/assets/adapt/css/mobile.min.css +1 -0
  220. data/vendor/assets/adapt/css/reset.css +202 -0
  221. data/vendor/assets/adapt/css/text.css +81 -0
  222. data/vendor/assets/adapt/images/h1.png +0 -0
  223. data/vendor/assets/adapt/js/adapt.js +135 -0
  224. data/vendor/assets/adapt/js/adapt.min.js +1 -0
  225. data/vendor/assets/bootstrap-2.3.2/css/bootstrap-responsive.css +1109 -0
  226. data/vendor/assets/bootstrap-2.3.2/css/bootstrap-responsive.min.css +9 -0
  227. data/vendor/assets/bootstrap-2.3.2/css/bootstrap.css +6167 -0
  228. data/vendor/assets/bootstrap-2.3.2/css/bootstrap.min.css +9 -0
  229. data/vendor/assets/bootstrap-2.3.2/img/glyphicons-halflings-white.png +0 -0
  230. data/vendor/assets/bootstrap-2.3.2/img/glyphicons-halflings.png +0 -0
  231. data/vendor/assets/bootstrap-2.3.2/js/bootstrap.js +2280 -0
  232. data/vendor/assets/bootstrap-2.3.2/js/bootstrap.min.js +6 -0
  233. data/vendor/assets/chosen/LICENSE.md +24 -0
  234. data/vendor/assets/chosen/chosen-sprite.png +0 -0
  235. data/vendor/assets/chosen/chosen.css +390 -0
  236. data/vendor/assets/chosen/chosen.jquery.js +902 -0
  237. data/vendor/assets/formalize/css/formalize.css +395 -0
  238. data/vendor/assets/formalize/images/button.png +0 -0
  239. data/vendor/assets/formalize/images/select_arrow.gif +0 -0
  240. data/vendor/assets/formalize/js/jquery.formalize.min.js +1 -0
  241. metadata +329 -0
data/Gemfile.lock ADDED
@@ -0,0 +1,205 @@
1
+ GIT
2
+ remote: git://github.com/fesplugas/rails-ckeditor.git
3
+ revision: 63607310b8bce76f8d959994d62379a96c7fdadc
4
+ specs:
5
+ ckeditor-rails (0.0.6)
6
+ rails
7
+
8
+ GIT
9
+ remote: git://github.com/fesplugas/rails-trash.git
10
+ revision: d0b47b504232f9b7944c083934cc8880d849b540
11
+ specs:
12
+ rails-trash (3.0.0)
13
+ rails (>= 3.2.12)
14
+
15
+ GIT
16
+ remote: git://github.com/mongoid/mongoid.git
17
+ revision: 248b60ebc3174e0e031c1aa49ab7977d8e78e53a
18
+ specs:
19
+ mongoid (4.0.0)
20
+ activemodel (~> 4.0.0)
21
+ moped (~> 2.0.beta3)
22
+ origin (~> 1.0)
23
+ tzinfo (~> 0.3.37)
24
+
25
+ GIT
26
+ remote: git://github.com/plataformatec/devise.git
27
+ revision: bb2ff3553bbd9c9c0fbf715d95d966e6df1c6996
28
+ specs:
29
+ devise (3.2.1)
30
+ bcrypt-ruby (~> 3.0)
31
+ orm_adapter (~> 0.1)
32
+ railties (>= 3.2.6, < 5)
33
+ thread_safe (~> 0.1)
34
+ warden (~> 1.2.3)
35
+
36
+ GIT
37
+ remote: git://github.com/typus/acts_as_list.git
38
+ revision: 602b965df0e8bd0c2a2ab55f5b7850ed226012e9
39
+ specs:
40
+ acts_as_list (0.2.0)
41
+ activerecord (>= 3.0)
42
+
43
+ PATH
44
+ remote: .
45
+ specs:
46
+ typus (4.0.0.beta1)
47
+ bcrypt-ruby (~> 3.1.2)
48
+ jquery-rails
49
+ rails (~> 4)
50
+
51
+ GEM
52
+ remote: https://rubygems.org/
53
+ specs:
54
+ actionmailer (4.0.9)
55
+ actionpack (= 4.0.9)
56
+ mail (~> 2.5.4)
57
+ actionpack (4.0.9)
58
+ activesupport (= 4.0.9)
59
+ builder (~> 3.1.0)
60
+ erubis (~> 2.7.0)
61
+ rack (~> 1.5.2)
62
+ rack-test (~> 0.6.2)
63
+ activemodel (4.0.9)
64
+ activesupport (= 4.0.9)
65
+ builder (~> 3.1.0)
66
+ activerecord (4.0.9)
67
+ activemodel (= 4.0.9)
68
+ activerecord-deprecated_finders (~> 1.0.2)
69
+ activesupport (= 4.0.9)
70
+ arel (~> 4.0.0)
71
+ activerecord-deprecated_finders (1.0.3)
72
+ activesupport (4.0.9)
73
+ i18n (~> 0.6, >= 0.6.9)
74
+ minitest (~> 4.2)
75
+ multi_json (~> 1.3)
76
+ thread_safe (~> 0.1)
77
+ tzinfo (~> 0.3.37)
78
+ acts_as_tree (1.4.0)
79
+ activerecord (>= 3.0.0)
80
+ arel (4.0.2)
81
+ bcrypt-ruby (3.1.2)
82
+ bson (2.0.0.rc3)
83
+ builder (3.1.4)
84
+ climate_control (0.0.3)
85
+ activesupport (>= 3.0)
86
+ cocaine (0.5.3)
87
+ climate_control (>= 0.0.3, < 1.0)
88
+ coffee-rails (4.0.1)
89
+ coffee-script (>= 2.2.0)
90
+ railties (>= 4.0.0, < 5.0)
91
+ coffee-script (2.2.0)
92
+ coffee-script-source
93
+ execjs
94
+ coffee-script-source (1.6.3)
95
+ dragonfly (0.9.15)
96
+ multi_json (~> 1.0)
97
+ rack
98
+ erubis (2.7.0)
99
+ execjs (2.0.2)
100
+ factory_girl (4.2.0)
101
+ activesupport (>= 3.0.0)
102
+ factory_girl_rails (4.2.1)
103
+ factory_girl (~> 4.2.0)
104
+ railties (>= 3.0.0)
105
+ hike (1.2.3)
106
+ i18n (0.6.11)
107
+ jquery-rails (3.0.4)
108
+ railties (>= 3.0, < 5.0)
109
+ thor (>= 0.14, < 2.0)
110
+ mail (2.5.4)
111
+ mime-types (~> 1.16)
112
+ treetop (~> 1.4.8)
113
+ mime-types (1.25.1)
114
+ minitest (4.7.5)
115
+ moped (2.0.0.beta3)
116
+ bson (~> 2.0.0.rc3)
117
+ optionable (~> 0.1.1)
118
+ multi_json (1.10.1)
119
+ mysql2 (0.3.14)
120
+ optionable (0.1.1)
121
+ origin (1.1.0)
122
+ orm_adapter (0.5.0)
123
+ paperclip (3.4.2)
124
+ activemodel (>= 3.0.0)
125
+ activerecord (>= 3.0.0)
126
+ activesupport (>= 3.0.0)
127
+ cocaine (~> 0.5.0)
128
+ mime-types
129
+ pg (0.17.0)
130
+ polyglot (0.3.5)
131
+ rack (1.5.2)
132
+ rack-cache (1.2)
133
+ rack (>= 0.4)
134
+ rack-test (0.6.2)
135
+ rack (>= 1.0)
136
+ rails (4.0.9)
137
+ actionmailer (= 4.0.9)
138
+ actionpack (= 4.0.9)
139
+ activerecord (= 4.0.9)
140
+ activesupport (= 4.0.9)
141
+ bundler (>= 1.3.0, < 2.0)
142
+ railties (= 4.0.9)
143
+ sprockets-rails (~> 2.0)
144
+ rails-permalink (1.0.0)
145
+ rails (>= 3.0.0)
146
+ railties (4.0.9)
147
+ actionpack (= 4.0.9)
148
+ activesupport (= 4.0.9)
149
+ rake (>= 0.8.7)
150
+ thor (>= 0.18.1, < 2.0)
151
+ rake (10.3.2)
152
+ sass (3.2.12)
153
+ sass-rails (4.0.1)
154
+ railties (>= 4.0.0, < 5.0)
155
+ sass (>= 3.1.10)
156
+ sprockets-rails (~> 2.0.0)
157
+ sprockets (2.12.1)
158
+ hike (~> 1.2)
159
+ multi_json (~> 1.0)
160
+ rack (~> 1.0)
161
+ tilt (~> 1.1, != 1.3.0)
162
+ sprockets-rails (2.0.1)
163
+ actionpack (>= 3.0)
164
+ activesupport (>= 3.0)
165
+ sprockets (~> 2.8)
166
+ sqlite3 (1.3.8)
167
+ thor (0.19.1)
168
+ thread_safe (0.3.4)
169
+ tilt (1.4.1)
170
+ treetop (1.4.15)
171
+ polyglot
172
+ polyglot (>= 0.3.1)
173
+ tzinfo (0.3.41)
174
+ uglifier (1.3.0)
175
+ execjs (>= 0.3.0)
176
+ multi_json (~> 1.0, >= 1.0.2)
177
+ warden (1.2.3)
178
+ rack (>= 1.0)
179
+
180
+ PLATFORMS
181
+ ruby
182
+
183
+ DEPENDENCIES
184
+ activerecord-jdbcmysql-adapter
185
+ activerecord-jdbcpostgresql-adapter
186
+ activerecord-jdbcsqlite3-adapter
187
+ acts_as_list!
188
+ acts_as_tree
189
+ ckeditor-rails!
190
+ coffee-rails (~> 4.0.0)
191
+ devise!
192
+ dragonfly (~> 0.9.14)
193
+ factory_girl_rails (~> 4.2.1)
194
+ jquery-rails
195
+ mongoid!
196
+ mysql2 (~> 0.3.14)
197
+ paperclip (~> 3.4.1)
198
+ pg (~> 0.17.0)
199
+ rack-cache
200
+ rails-permalink (~> 1.0.0)
201
+ rails-trash!
202
+ sass-rails (~> 4.0.0)
203
+ sqlite3 (~> 1.3.8)
204
+ typus!
205
+ uglifier (~> 1.3.0)
data/MIT-LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2007-2013 Francesc Esplugas Marti
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.md ADDED
@@ -0,0 +1,94 @@
1
+ # Typus: Admin Panel for Ruby on Rails applications
2
+
3
+ **Typus** is a control panel for [Ruby on Rails][rails] applications to
4
+ allow trusted users edit structured content.
5
+
6
+ It's not a CMS with a full working system but it provides a part of the
7
+ system: authentication, permissions and basic look and feel for your
8
+ websites control panel. So using [Rails][rails] with **Typus** lets you
9
+ concentrate on your application instead of the bits to manage the system.
10
+
11
+ **Typus** is the "old latin" word for **type** which stands for:
12
+
13
+ > A category of people or things having common characteristics.
14
+
15
+ ![Main View](http://cloud.github.com/downloads/fesplugas/typus/001-typus.png)
16
+
17
+
18
+ ## Key Features
19
+
20
+ - Built-in Authentication and Access Control Lists.
21
+ - CRUD and custom actions for your models on a clean interface.
22
+ - Internationalized interface ([See available translations][typus_locales])
23
+ - Customizable and extensible templates.
24
+ - Integrated [paperclip][paperclip] and [dragonfly][dragonfly] attachments viewer.
25
+ - Supports Rails 4.0 and 3.2.
26
+
27
+
28
+ ## Installing
29
+
30
+ Add **Typus** to your `Gemfile`.
31
+
32
+ If you are using **Rails 4.0**, you can use `master` or `4-0-stable` branch:
33
+
34
+ gem "typus", :git => "git://github.com/fesplugas/typus.git"
35
+ gem "typus", :git => "git://github.com/fesplugas/typus.git", :branch => "4-0-stable"
36
+
37
+ If you are using **Rails 3.2**:
38
+
39
+ gem "typus", :git => "git://github.com/fesplugas/typus.git", :branch => "3-2-stable"
40
+
41
+ Update your bundle, run the generator and start the application server:
42
+
43
+ $ bundle install
44
+ $ rails generate typus
45
+ $ rails server
46
+
47
+ and go to <http://0.0.0.0:3000/admin>.
48
+
49
+
50
+ ## Testing
51
+
52
+ [![Build Status](https://travis-ci.org/fesplugas/typus.png?branch=master)](https://travis-ci.org/fesplugas/typus)
53
+
54
+ To test, clone the repo and run:
55
+
56
+ $ git clone --recursive git://github.com/fesplugas/typus.git
57
+ $ bundle install --path vendor/bundle
58
+ $ bundle exec rake
59
+
60
+
61
+ ## Submitting an Issue
62
+
63
+ We use the [GitHub issue tracker][issues] to track bugs and features.
64
+ Before submitting a bug report or feature request, check to make sure it
65
+ hasn't already been submitted. You can indicate support for an existing
66
+ issue by voting it up. When submitting a bug report, please include a
67
+ [Gist][gist] that includes a stack trace and any details that may be
68
+ necessary to reproduce the bug, including your gem version, Ruby
69
+ version, and operating system. Ideally, a bug report should include a
70
+ pull request with failing specs.
71
+
72
+
73
+ ## Links
74
+
75
+ - [Documentation](http://docs.typuscmf.com/)
76
+ - [RubyGems][typus_gem]
77
+ - [Contributors List](http://github.com/fesplugas/typus/contributors)
78
+
79
+
80
+ ## License
81
+
82
+ **Typus** is released under the MIT license.
83
+
84
+ [typus]: http://github.com/fesplugas/typus
85
+ [typus_demo]: http://demo.typuscmf.com/
86
+ [typus_locales]: https://github.com/fesplugas/typus/tree/master/config/locales
87
+ [typus_gem]: http://rubygems.org/gems/typus
88
+ [paperclip]: http://rubygems.org/gems/paperclip
89
+ [dragonfly]: http://rubygems.org/gems/dragonfly
90
+ [rails]: http://rubyonrails.org/
91
+ [gist]: https://gist.github.com/
92
+ [issues]: https://github.com/fesplugas/typus/issues
93
+ [kaminari]: http://rubygems.org/gems/kaminari
94
+ [will_paginate]: http://rubygems.org/gems/will_paginate
data/Rakefile ADDED
@@ -0,0 +1,33 @@
1
+ begin
2
+ require 'bundler/setup'
3
+ require 'bundler/gem_tasks'
4
+ rescue LoadError
5
+ puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
6
+ end
7
+
8
+ begin
9
+ require 'rdoc/task'
10
+ rescue LoadError
11
+ require 'rdoc/rdoc'
12
+ require 'rake/rdoctask'
13
+ RDoc::Task = Rake::RDocTask
14
+ end
15
+
16
+ require 'rake/testtask'
17
+
18
+ Rake::TestTask.new(:test) do |t|
19
+ t.libs << 'lib'
20
+ t.libs << 'test'
21
+ t.test_files = FileList['test/**/*_test.rb']
22
+ t.verbose = false
23
+ end
24
+
25
+ task :default => :test
26
+
27
+ RDoc::Task.new(:rdoc) do |rdoc|
28
+ rdoc.rdoc_dir = 'rdoc'
29
+ rdoc.title = 'Typus'
30
+ rdoc.options << '--line-numbers'
31
+ rdoc.rdoc_files.include('README.rdoc')
32
+ rdoc.rdoc_files.include('lib/**/*.rb')
33
+ end
data/TODO.md ADDED
@@ -0,0 +1,32 @@
1
+ [ ] Fix has_and_belongs_to_many associations.
2
+ Eg. http://localhost:3000/admin/projects/edit/2
3
+
4
+ [ ] Fix has_many associations.
5
+
6
+ [ ] Do not show "Save" when clicking on "Show".
7
+ Eg. http://localhost:3000/admin/projects/edit/2
8
+
9
+ [ ] Custom actions for Sidebar.
10
+
11
+ [ ] Improve "text_area".
12
+ Eg. http://localhost:3000/admin/pages/new
13
+
14
+ [ ] Help should open a "Modal".
15
+ Eg. http://localhost:3000/admin/posts
16
+
17
+ [ ] Dashboard should show more information.
18
+ http://localhost:3000/admin/dashboard
19
+
20
+ [ ] Fix has_one associations.
21
+ Eg. http://localhost:3000/admin/orders/edit/1
22
+
23
+ [ ] Improve how login window is displayed.
24
+ Eg. http://localhost:3000/admin/session/new
25
+
26
+ [ ] Fix leave this page. Replace it with local storage?
27
+
28
+ [ ] Improve "Remove" button on images.
29
+ Eg. http://localhost:3000/admin/assets/edit/2
30
+
31
+ [ ] Fix how posts are displayed.
32
+ Eg. http://localhost:3000/admin/posts/edit/10
@@ -0,0 +1,11 @@
1
+ //= require typus/jquery-1.8.3-min
2
+ //= require jquery_ujs
3
+ //= require js/bootstrap.min.js
4
+ //= require typus/jquery.application
5
+ //= require typus/custom
6
+
7
+ $(".ajax-modal").live('click', function() {
8
+ var url = $(this).attr('url');
9
+ var modal_id = $(this).attr('data-controls-modal');
10
+ $("#" + modal_id + " .modal-body").load(url);
11
+ });
@@ -0,0 +1,2 @@
1
+ // Create the file `app/assets/javascripts/typus/custom.js` in your
2
+ // application if you need/want to extend some javascript functionality.