card 1.97.0.1 → 1.98.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1067) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +10 -8
  3. data/LICENSE +0 -1
  4. data/VERSION +1 -1
  5. data/config/locales/de.yml +16 -12
  6. data/config/locales/en.yml +15 -10
  7. data/config/locales/es.yml +16 -13
  8. data/db/migrate_core_cards/20150116220620_add_markdown_type.rb +7 -0
  9. data/db/migrate_core_cards/20190417142612_reorganize_scripts_2.rb +19 -0
  10. data/db/migrate_core_cards/20190424100531_update_credit_image.rb +75 -0
  11. data/db/migrate_core_cards/20190424101004_add_read_anyone_rules.rb +13 -0
  12. data/db/migrate_core_cards/20190502130029_add_shark_and_help_desk_role.rb +105 -0
  13. data/db/migrate_core_cards/20190503122739_update_pristine_data.rb +18 -0
  14. data/db/migrate_core_cards/20190528131330_enabled_roles.rb +12 -0
  15. data/db/migrate_core_cards/20190605133556_tweak_config_cards.rb +10 -0
  16. data/db/migrate_core_cards/20190618110446_add_dropdown_divider.rb +8 -0
  17. data/db/migrate_core_cards/20190621143156_add_role_assign_permissions.rb +9 -0
  18. data/db/migrate_core_cards/20190625153616_pointer_overhaul.rb +19 -0
  19. data/db/migrate_core_cards/20190710090207_homepage_tweaks.rb +12 -0
  20. data/db/migrate_core_cards/data/cards.yml +127 -2
  21. data/db/migrate_core_cards/data/cards/Xaccount_setting-Xright-Xstructure +5 -0
  22. data/db/migrate_core_cards/data/cards/Xall-Xlayout +1 -0
  23. data/db/migrate_core_cards/data/cards/Xcredit +2 -0
  24. data/db/migrate_core_cards/data/cards/Xfooter +3 -0
  25. data/db/migrate_core_cards/data/cards/Xgetting_started +31 -0
  26. data/db/migrate_core_cards/data/cards/Xgetting_started-link +6 -0
  27. data/db/migrate_core_cards/data/cards/Xgetting_started-shark +66 -0
  28. data/db/migrate_core_cards/data/cards/Xheader +4 -2
  29. data/db/migrate_core_cards/data/cards/Xhome +1 -0
  30. data/db/migrate_core_cards/data/cards/Xlogo +1 -0
  31. data/db/migrate_core_cards/data/cards/Xmain_menu +2 -2
  32. data/db/migrate_core_cards/data/cards/Xrecaptcha_setting-Xself-Xstructure +1 -0
  33. data/db/migrate_core_cards/data/cards/Xsidebar +7 -0
  34. data/db/migrate_core_cards/data/cards/Xtitle +1 -0
  35. data/db/migrate_core_cards/data/cards/administrator-dashboard +18 -0
  36. data/db/migrate_core_cards/data/cards/administrator-description +1 -0
  37. data/db/migrate_core_cards/data/cards/anyone_signed_in-dashboard +2 -0
  38. data/db/migrate_core_cards/data/cards/cardtype-Xtype-Xstructure +3 -0
  39. data/db/migrate_core_cards/data/cards/default_layout +6 -0
  40. data/db/migrate_core_cards/data/cards/eagle-description +1 -0
  41. data/db/migrate_core_cards/data/cards/full_width_layout +5 -0
  42. data/db/migrate_core_cards/data/cards/help_desk-dashboard +7 -0
  43. data/db/migrate_core_cards/data/cards/help_desk-description +1 -0
  44. data/db/migrate_core_cards/data/cards/home +2 -0
  45. data/db/migrate_core_cards/data/cards/home-Xself-Xlayout +1 -0
  46. data/db/migrate_core_cards/data/cards/home-original +22 -0
  47. data/db/migrate_core_cards/data/cards/home_layout +6 -0
  48. data/db/migrate_core_cards/data/cards/left_sidebar_layout +6 -0
  49. data/db/migrate_core_cards/data/cards/menu +1 -0
  50. data/db/migrate_core_cards/data/cards/right_thin_sidebar_layout +8 -0
  51. data/db/migrate_core_cards/data/cards/role-Xtype-Xstructure +2 -0
  52. data/db/migrate_core_cards/data/cards/shark-dashboard +19 -0
  53. data/db/migrate_core_cards/data/cards/shark-description +1 -0
  54. data/db/migrate_core_cards/data/cards/shark_menu +2 -0
  55. data/db/migrate_core_cards/data/decko_logo.svg +1 -1
  56. data/db/seed/new/card_actions.yml +2487 -2247
  57. data/db/seed/new/card_acts.yml +2 -2
  58. data/db/seed/new/card_references.yml +4030 -3778
  59. data/db/seed/new/cards.yml +5576 -4902
  60. data/db/seed/new/schema_migrations_core_cards.yml +128 -86
  61. data/db/seed/test/fixtures/card_actions.yml +3561 -3289
  62. data/db/seed/test/fixtures/card_acts.yml +514 -490
  63. data/db/seed/test/fixtures/card_changes.yml +67 -67
  64. data/db/seed/test/fixtures/card_references.yml +4595 -4329
  65. data/db/seed/test/fixtures/cards.yml +5710 -4976
  66. data/db/seed/test/fixtures/schema_migrations_core_cards.yml +128 -86
  67. data/db/seed/test/seed.rb +10 -5
  68. data/db/version_core_cards.txt +1 -1
  69. data/lib/card.rb +2 -2
  70. data/lib/card/act_manager/stage_director/phases.rb +0 -3
  71. data/lib/card/auth/current.rb +14 -3
  72. data/lib/card/auth/permissions.rb +19 -8
  73. data/lib/card/cache.rb +4 -3
  74. data/lib/card/codename.rb +1 -1
  75. data/lib/card/content.rb +24 -3
  76. data/lib/card/content/chunk.rb +17 -2
  77. data/lib/card/env.rb +22 -10
  78. data/lib/card/env/success.rb +5 -1
  79. data/lib/card/error.rb +5 -0
  80. data/lib/card/format.rb +10 -61
  81. data/lib/card/format/content.rb +20 -13
  82. data/lib/card/format/context_names.rb +13 -2
  83. data/lib/card/format/error.rb +34 -0
  84. data/lib/card/format/nest.rb +14 -6
  85. data/lib/card/format/nesting.rb +6 -4
  86. data/lib/card/format/nesting/main.rb +1 -21
  87. data/lib/card/format/nesting/mode.rb +8 -8
  88. data/lib/card/format/nesting/subformat.rb +1 -1
  89. data/lib/card/format/registration.rb +0 -32
  90. data/lib/card/format/render.rb +19 -20
  91. data/lib/card/migration.rb +7 -0
  92. data/lib/card/mod.rb +3 -2
  93. data/lib/card/mod/load_strategy.rb +4 -0
  94. data/lib/card/mod/load_strategy/eval.rb +1 -1
  95. data/lib/card/mod/load_strategy/pattern_tmp_files.rb +5 -5
  96. data/lib/card/mod/load_strategy/set_tmp_files.rb +1 -0
  97. data/lib/card/mod/load_strategy/tmp_files.rb +6 -2
  98. data/lib/card/mod/loader.rb +3 -2
  99. data/lib/card/mod/loader/set_loader.rb +83 -16
  100. data/lib/card/mod/loader/set_pattern_loader.rb +9 -12
  101. data/lib/card/mod/module_template.rb +42 -22
  102. data/lib/card/model/save_helper.rb +5 -5
  103. data/lib/card/query.rb +11 -11
  104. data/lib/card/query/card_query/sorting.rb +2 -2
  105. data/lib/card/set/event.rb +17 -3
  106. data/lib/card/set/event/delayed_event.rb +1 -1
  107. data/lib/card/set/event/options.rb +2 -2
  108. data/lib/card/set/format.rb +69 -23
  109. data/lib/card/set/format/abstract_format.rb +95 -98
  110. data/lib/card/set/format/abstract_format/haml_views.rb +44 -0
  111. data/lib/card/set/format/abstract_format/view_definition.rb +67 -0
  112. data/lib/card/set/format/abstract_format/view_opts.rb +68 -0
  113. data/lib/card/set/format/abstract_format/wrapper.rb +91 -0
  114. data/lib/card/set/format/{haml_views.rb → haml_paths.rb} +33 -60
  115. data/lib/card/set/i18n_scope.rb +62 -36
  116. data/lib/card/view.rb +49 -20
  117. data/lib/card/view/cache.rb +176 -8
  118. data/lib/card/view/cache/cache_action.rb +124 -0
  119. data/lib/card/view/cache/stub.rb +55 -0
  120. data/lib/card/view/options.rb +19 -3
  121. data/lib/card/view/options/key_lists.rb +4 -0
  122. data/lib/card/view/options/visibility.rb +99 -0
  123. data/lib/card/view/options/voo_api.rb +13 -10
  124. data/lib/card/view/permission.rb +54 -0
  125. data/lib/cardio.rb +3 -3
  126. data/mod/Modfile +2 -0
  127. data/mod/account/README.md +5 -0
  128. data/mod/account/set/all/account.rb +33 -12
  129. data/mod/account/set/right/roles.rb +27 -0
  130. data/mod/account/set/self/signin.rb +5 -2
  131. data/mod/account/set/type/role.rb +17 -0
  132. data/mod/account/set/type/user.rb +4 -3
  133. data/mod/account/spec/set/all/account_spec.rb +4 -7
  134. data/mod/account/spec/set/right/roles_spec.rb +24 -0
  135. data/mod/ace_editor/db/migrate_core_cards/20160805112548_delete_ace_help_card.rb +8 -0
  136. data/mod/ace_editor/lib/javascript/script_ace_config.js.coffee +0 -4
  137. data/mod/ace_editor/set/self/ace.rb +7 -0
  138. data/mod/admin/set/self/admin_info.rb +13 -46
  139. data/mod/admin/set/self/recaptcha_secret_key.rb +1 -1
  140. data/mod/admin/set/self/recaptcha_settings.rb +44 -0
  141. data/mod/admin/set/self/recaptcha_site_key.rb +1 -1
  142. data/mod/admin/set/self/version.rb +4 -0
  143. data/mod/admin/spec/set/self/admin_info_spec.rb +0 -1
  144. data/mod/basic_formats/format/json_format.rb +3 -3
  145. data/mod/basic_formats/set/all/base.rb +4 -7
  146. data/mod/basic_formats/set/all/head.rb +12 -12
  147. data/mod/basic_formats/set/all/json.rb +40 -23
  148. data/mod/basic_formats/set/all/rss.rb +4 -4
  149. data/mod/basic_formats/spec/set/all/json_spec.rb +1 -1
  150. data/mod/bootstrap/lib/bootstrap/component/layout.rb +6 -2
  151. data/mod/bootstrap/lib/javascript/script_load_select2.js.coffee +8 -3
  152. data/mod/bootstrap/lib/stylesheets/style_bootstrap_cards.scss +96 -13
  153. data/mod/bootstrap/lib/stylesheets/style_select2_bootstrap.scss +1 -1
  154. data/mod/bootstrap/set/abstract/bootswatch_theme.rb +1 -2
  155. data/mod/bootstrap/set/abstract/bootswatch_theme/html_views.rb +1 -1
  156. data/mod/bootstrap/set/all/bootstrap/dropdown.rb +87 -0
  157. data/mod/bootstrap/set/all/bootstrap/helper.rb +0 -161
  158. data/mod/bootstrap/set/all/bootstrap/icon.rb +109 -0
  159. data/mod/bootstrap/set/type/customized_bootswatch_skin/html_views.rb +2 -4
  160. data/mod/bootstrap/spec/set/all/bootstrap/layout_spec.rb +2 -2
  161. data/mod/bootstrap/vendor/bootswatch/Gruntfile.js +4 -0
  162. data/mod/bootstrap/vendor/bootswatch/dist/darkly/_bootswatch.scss +6 -3
  163. data/mod/bootstrap/vendor/bootswatch/dist/darkly/_variables.scss +6 -10
  164. data/mod/bootstrap/vendor/bootswatch/dist/darkly/bootstrap.css +129 -129
  165. data/mod/bootstrap/vendor/bootswatch/dist/darkly/bootstrap.min.css +1 -1
  166. data/mod/bootstrap/vendor/bootswatch/dist/litera/_bootswatch.scss +13 -12
  167. data/mod/bootstrap/vendor/bootswatch/dist/litera/bootstrap.css +4 -4
  168. data/mod/bootstrap/vendor/bootswatch/dist/litera/bootstrap.min.css +1 -1
  169. data/mod/bootstrap/vendor/bootswatch/dist/lux/_bootswatch.scss +13 -0
  170. data/mod/bootstrap/vendor/bootswatch/dist/lux/bootstrap.css +7 -0
  171. data/mod/bootstrap/vendor/bootswatch/dist/lux/bootstrap.min.css +1 -1
  172. data/mod/bootstrap/vendor/bootswatch/dist/materia/_bootswatch.scss +1 -1
  173. data/mod/bootstrap/vendor/bootswatch/dist/materia/bootstrap.css +4 -2
  174. data/mod/bootstrap/vendor/bootswatch/dist/materia/bootstrap.min.css +1 -1
  175. data/mod/bootstrap/vendor/bootswatch/dist/sketchy/_bootswatch.scss +45 -4
  176. data/mod/bootstrap/vendor/bootswatch/dist/sketchy/_variables.scss +3 -3
  177. data/mod/bootstrap/vendor/bootswatch/dist/sketchy/bootstrap.css +136 -100
  178. data/mod/bootstrap/vendor/bootswatch/dist/sketchy/bootstrap.min.css +1 -1
  179. data/mod/bootstrap/vendor/bootswatch/docs/2/README.md +3 -3
  180. data/mod/bootstrap/vendor/bootswatch/docs/2/amelia/index.html +2 -2
  181. data/mod/bootstrap/vendor/bootswatch/docs/2/cerulean/index.html +2 -2
  182. data/mod/bootstrap/vendor/bootswatch/docs/2/cosmo/index.html +2 -2
  183. data/mod/bootstrap/vendor/bootswatch/docs/2/cyborg/index.html +2 -2
  184. data/mod/bootstrap/vendor/bootswatch/docs/2/default/index.html +2 -2
  185. data/mod/bootstrap/vendor/bootswatch/docs/2/flatly/index.html +2 -2
  186. data/mod/bootstrap/vendor/bootswatch/docs/2/index.html +5 -5
  187. data/mod/bootstrap/vendor/bootswatch/docs/2/journal/index.html +2 -2
  188. data/mod/bootstrap/vendor/bootswatch/docs/2/readable/index.html +2 -2
  189. data/mod/bootstrap/vendor/bootswatch/docs/2/simplex/index.html +2 -2
  190. data/mod/bootstrap/vendor/bootswatch/docs/2/slate/index.html +2 -2
  191. data/mod/bootstrap/vendor/bootswatch/docs/2/spacelab/index.html +2 -2
  192. data/mod/bootstrap/vendor/bootswatch/docs/2/spruce/index.html +2 -2
  193. data/mod/bootstrap/vendor/bootswatch/docs/2/superhero/index.html +2 -2
  194. data/mod/bootstrap/vendor/bootswatch/docs/2/united/index.html +2 -2
  195. data/mod/bootstrap/vendor/bootswatch/docs/3/README.md +3 -3
  196. data/mod/bootstrap/vendor/bootswatch/docs/3/cerulean/index.html +2 -2
  197. data/mod/bootstrap/vendor/bootswatch/docs/3/cosmo/index.html +2 -2
  198. data/mod/bootstrap/vendor/bootswatch/docs/3/custom/index.html +2 -2
  199. data/mod/bootstrap/vendor/bootswatch/docs/3/cyborg/index.html +2 -2
  200. data/mod/bootstrap/vendor/bootswatch/docs/3/darkly/index.html +2 -2
  201. data/mod/bootstrap/vendor/bootswatch/docs/3/default/index.html +2 -2
  202. data/mod/bootstrap/vendor/bootswatch/docs/3/flatly/index.html +2 -2
  203. data/mod/bootstrap/vendor/bootswatch/docs/3/help/index.html +3 -3
  204. data/mod/bootstrap/vendor/bootswatch/docs/3/index.html +2 -2
  205. data/mod/bootstrap/vendor/bootswatch/docs/3/journal/index.html +2 -2
  206. data/mod/bootstrap/vendor/bootswatch/docs/3/lumen/index.html +2 -2
  207. data/mod/bootstrap/vendor/bootswatch/docs/3/paper/index.html +2 -2
  208. data/mod/bootstrap/vendor/bootswatch/docs/3/readable/index.html +2 -2
  209. data/mod/bootstrap/vendor/bootswatch/docs/3/sandstone/index.html +2 -2
  210. data/mod/bootstrap/vendor/bootswatch/docs/3/simplex/index.html +2 -2
  211. data/mod/bootstrap/vendor/bootswatch/docs/3/slate/index.html +2 -2
  212. data/mod/bootstrap/vendor/bootswatch/docs/3/spacelab/index.html +2 -2
  213. data/mod/bootstrap/vendor/bootswatch/docs/3/superhero/index.html +2 -2
  214. data/mod/bootstrap/vendor/bootswatch/docs/3/tests/components.html +8 -8
  215. data/mod/bootstrap/vendor/bootswatch/docs/3/united/index.html +2 -2
  216. data/mod/bootstrap/vendor/bootswatch/docs/3/yeti/index.html +2 -2
  217. data/mod/bootstrap/vendor/bootswatch/docs/4/darkly/_bootswatch.scss +6 -3
  218. data/mod/bootstrap/vendor/bootswatch/docs/4/darkly/_variables.scss +6 -10
  219. data/mod/bootstrap/vendor/bootswatch/docs/4/darkly/bootstrap.css +129 -129
  220. data/mod/bootstrap/vendor/bootswatch/docs/4/darkly/bootstrap.min.css +1 -1
  221. data/mod/bootstrap/vendor/bootswatch/docs/4/litera/_bootswatch.scss +13 -12
  222. data/mod/bootstrap/vendor/bootswatch/docs/4/litera/bootstrap.css +4 -4
  223. data/mod/bootstrap/vendor/bootswatch/docs/4/litera/bootstrap.min.css +1 -1
  224. data/mod/bootstrap/vendor/bootswatch/docs/4/lux/_bootswatch.scss +13 -0
  225. data/mod/bootstrap/vendor/bootswatch/docs/4/lux/bootstrap.css +7 -0
  226. data/mod/bootstrap/vendor/bootswatch/docs/4/lux/bootstrap.min.css +1 -1
  227. data/mod/bootstrap/vendor/bootswatch/docs/4/materia/_bootswatch.scss +1 -1
  228. data/mod/bootstrap/vendor/bootswatch/docs/4/materia/bootstrap.css +4 -2
  229. data/mod/bootstrap/vendor/bootswatch/docs/4/materia/bootstrap.min.css +1 -1
  230. data/mod/bootstrap/vendor/bootswatch/docs/4/sketchy/_bootswatch.scss +45 -4
  231. data/mod/bootstrap/vendor/bootswatch/docs/4/sketchy/_variables.scss +3 -3
  232. data/mod/bootstrap/vendor/bootswatch/docs/4/sketchy/bootstrap.css +136 -100
  233. data/mod/bootstrap/vendor/bootswatch/docs/4/sketchy/bootstrap.min.css +1 -1
  234. data/mod/bootstrap/vendor/bootswatch/docs/_assets/css/custom.min.css +1 -1
  235. data/mod/bootstrap/vendor/bootswatch/docs/_assets/js/custom.js +10 -11
  236. data/mod/bootstrap/vendor/bootswatch/docs/_assets/scss/custom.scss +10 -1
  237. data/mod/bootstrap/vendor/bootswatch/docs/_vendor/jquery/dist/core.js +22 -99
  238. data/mod/bootstrap/vendor/bootswatch/docs/_vendor/jquery/dist/jquery.js +842 -497
  239. data/mod/bootstrap/vendor/bootswatch/docs/_vendor/jquery/dist/jquery.min.js +2 -4
  240. data/mod/bootstrap/vendor/bootswatch/docs/_vendor/jquery/dist/jquery.min.map +1 -1
  241. data/mod/bootstrap/vendor/bootswatch/docs/_vendor/jquery/dist/jquery.slim.js +791 -456
  242. data/mod/bootstrap/vendor/bootswatch/docs/_vendor/jquery/dist/jquery.slim.min.js +2 -4
  243. data/mod/bootstrap/vendor/bootswatch/docs/_vendor/jquery/dist/jquery.slim.min.map +1 -1
  244. data/mod/bootstrap/vendor/bootswatch/docs/cerulean/index.html +6 -6
  245. data/mod/bootstrap/vendor/bootswatch/docs/cosmo/index.html +6 -6
  246. data/mod/bootstrap/vendor/bootswatch/docs/cyborg/index.html +6 -6
  247. data/mod/bootstrap/vendor/bootswatch/docs/darkly/index.html +6 -6
  248. data/mod/bootstrap/vendor/bootswatch/docs/default/index.html +6 -6
  249. data/mod/bootstrap/vendor/bootswatch/docs/flatly/index.html +6 -6
  250. data/mod/bootstrap/vendor/bootswatch/docs/help/index.html +6 -6
  251. data/mod/bootstrap/vendor/bootswatch/docs/index.html +11 -11
  252. data/mod/bootstrap/vendor/bootswatch/docs/journal/index.html +6 -6
  253. data/mod/bootstrap/vendor/bootswatch/docs/litera/index.html +6 -6
  254. data/mod/bootstrap/vendor/bootswatch/docs/lumen/index.html +6 -6
  255. data/mod/bootstrap/vendor/bootswatch/docs/lux/index.html +6 -6
  256. data/mod/bootstrap/vendor/bootswatch/docs/materia/index.html +6 -6
  257. data/mod/bootstrap/vendor/bootswatch/docs/minty/index.html +6 -6
  258. data/mod/bootstrap/vendor/bootswatch/docs/pulse/index.html +6 -6
  259. data/mod/bootstrap/vendor/bootswatch/docs/sandstone/index.html +6 -6
  260. data/mod/bootstrap/vendor/bootswatch/docs/simplex/index.html +6 -6
  261. data/mod/bootstrap/vendor/bootswatch/docs/sketchy/index.html +6 -6
  262. data/mod/bootstrap/vendor/bootswatch/docs/slate/index.html +6 -6
  263. data/mod/bootstrap/vendor/bootswatch/docs/solar/index.html +6 -6
  264. data/mod/bootstrap/vendor/bootswatch/docs/spacelab/index.html +6 -6
  265. data/mod/bootstrap/vendor/bootswatch/docs/superhero/index.html +6 -6
  266. data/mod/bootstrap/vendor/bootswatch/docs/united/index.html +6 -6
  267. data/mod/bootstrap/vendor/bootswatch/docs/yeti/index.html +6 -6
  268. data/mod/bootstrap/vendor/bootswatch/package-lock.json +5218 -0
  269. data/mod/bootstrap/vendor/bootswatch/package.json +5 -5
  270. data/mod/carrierwave/set/abstract/attachment/paths.rb +1 -1
  271. data/mod/carrierwave/set/type/file.rb +4 -3
  272. data/mod/carrierwave/set/type/image.rb +0 -70
  273. data/mod/carrierwave/set/type/image/html_views.rb +104 -0
  274. data/mod/core/chunk/link.rb +9 -5
  275. data/mod/core/chunk/literal.rb +2 -2
  276. data/mod/core/chunk/nest.rb +8 -2
  277. data/mod/core/chunk/query_reference.rb +1 -1
  278. data/mod/core/chunk/uri.rb +3 -3
  279. data/mod/core/chunk/view_stub.rb +3 -2
  280. data/mod/core/format/html_format.rb +1 -1
  281. data/mod/core/set/abstract/haml_file.rb +1 -1
  282. data/mod/core/set/all/content.rb +1 -1
  283. data/mod/core/set/all/event_conditions.rb +7 -6
  284. data/mod/core/set/all/fetch.rb +6 -6
  285. data/mod/core/set/all/haml.rb +2 -2
  286. data/mod/core/set/all/item.rb +2 -2
  287. data/mod/core/set/all/permissions.rb +0 -1
  288. data/mod/core/set/all/phases.rb +0 -4
  289. data/mod/core/set/all/references.rb +2 -3
  290. data/mod/core/set/all/rename.rb +1 -1
  291. data/mod/core/set/all/states.rb +62 -25
  292. data/mod/core/set/all/templating.rb +12 -16
  293. data/mod/core/set_pattern/08_type_plus_right.rb +2 -0
  294. data/mod/core/spec/chunk/nest_spec.rb +1 -0
  295. data/mod/core/spec/format/html_format_spec.rb +2 -2
  296. data/mod/core/spec/set/all/assign_attributes_spec.rb +1 -1
  297. data/mod/core/spec/set/all/chunk_spec.rb +1 -1
  298. data/mod/core/spec/set/all/collection_spec.rb +1 -1
  299. data/mod/core/spec/set/all/export_spec.rb +7 -7
  300. data/mod/core/spec/set/all/fetch_spec.rb +2 -2
  301. data/mod/core/spec/set/all/pattern_spec.rb +9 -9
  302. data/mod/core/spec/set/all/rules2_spec.rb +7 -7
  303. data/mod/core/spec/set/all/rules_spec.rb +1 -1
  304. data/mod/core/spec/set/all/templating_spec.rb +2 -6
  305. data/mod/core/spec/set/all/type_spec.rb +2 -2
  306. data/mod/developer/set/right/debug.rb +1 -1
  307. data/mod/edit/set/all/bridge/bridge.haml +1 -1
  308. data/mod/edit/set/all/bridge/tab_views.rb +4 -4
  309. data/mod/edit/set/all/edit_content.rb +2 -10
  310. data/mod/edit/set/all/{edit_in_place.rb → edit_inline.rb} +6 -5
  311. data/mod/edit/set/all/edit_type.rb +1 -2
  312. data/mod/edit/set/all/editing.rb +3 -4
  313. data/mod/edit/set/all/editor.rb +1 -1
  314. data/mod/edit/set/all/form.rb +33 -3
  315. data/mod/edit/set/all/form_buttons.rb +2 -1
  316. data/mod/edit/set/all/nest_editor.rb +2 -0
  317. data/mod/edit/set/all/nest_editor/_options_select_row.haml +1 -1
  318. data/mod/edit/set/all/nest_editor/nest_parser.rb +2 -2
  319. data/mod/edit/set/all/nest_image.rb +1 -1
  320. data/mod/edit/set/all/new.rb +1 -1
  321. data/mod/follow/README.md +7 -4
  322. data/mod/follow/set/all/notify/base_views.rb +0 -1
  323. data/mod/follow/set/right/followers.rb +1 -1
  324. data/mod/follow/set/right/following.rb +1 -1
  325. data/mod/follow/set/self/follow_defaults.rb +1 -1
  326. data/mod/follow/set/type_plus_right/user/follow.rb +1 -1
  327. data/mod/follow/spec/set/all/follow_spec.rb +1 -1
  328. data/mod/follow/spec/set/all/notify_email.txt +3 -3
  329. data/mod/follow/spec/set/all/notify_spec.rb +12 -1
  330. data/mod/follow/spec/set/type/notification_template_spec.rb +1 -2
  331. data/mod/google_analytics/set/all/google_analytics.rb +1 -1
  332. data/mod/history/lib/card/act.rb +7 -4
  333. data/mod/history/lib/card/act/act_renderer.rb +1 -14
  334. data/mod/history/lib/card/act/act_renderer/absolute_act_renderer.rb +4 -2
  335. data/mod/history/lib/card/act/act_renderer/relative_act_renderer.rb +6 -0
  336. data/mod/history/lib/card/action.rb +2 -3
  337. data/mod/history/set/all/history/actions.rb +4 -8
  338. data/mod/history/set/all/history/revision.rb +8 -0
  339. data/mod/history/set/all/history/views.rb +2 -0
  340. data/mod/history/set/all/history_bridge.rb +3 -2
  341. data/mod/item/set/all/bar.haml +12 -13
  342. data/mod/item/set/all/bar.rb +19 -37
  343. data/mod/item/set/all/box.rb +0 -2
  344. data/mod/item/set/all/expanded_bar.haml +10 -10
  345. data/mod/item/spec/set/all/bar_spec.rb +6 -3
  346. data/mod/machines/file/all_script_machine_output/file.js +38106 -71
  347. data/mod/machines/file/all_style_machine_output/file.css +3 -3
  348. data/mod/machines/file/script_html5shiv_printshiv_machine_output/file.js +1 -1
  349. data/mod/machines/lib/javascript/decko/autosave.js.coffee +30 -0
  350. data/mod/machines/lib/javascript/{decko_bridge.js.coffee → decko/bridge.js.coffee} +0 -0
  351. data/mod/machines/lib/javascript/decko/card_menu.js.coffee +15 -0
  352. data/mod/machines/lib/javascript/{decko_components.js.coffee → decko/components.js.coffee} +18 -4
  353. data/mod/machines/lib/javascript/decko/decko.js.coffee +91 -0
  354. data/mod/machines/lib/javascript/decko/doubleclick.js.coffee +30 -0
  355. data/mod/machines/lib/javascript/{decko_editor.js.coffee → decko/editor.js.coffee} +19 -28
  356. data/mod/machines/lib/javascript/decko/filter.js.coffee +166 -0
  357. data/mod/machines/lib/javascript/{decko_filter.js.coffee → decko/filter_items.js.coffee} +28 -82
  358. data/mod/machines/lib/javascript/decko/filter_links.js.coffee +67 -0
  359. data/mod/machines/lib/javascript/decko/follow.js.coffee +22 -0
  360. data/mod/machines/lib/javascript/{decko_layout.js.coffee → decko/layout.js.coffee} +4 -4
  361. data/mod/machines/lib/javascript/{decko_mod.js.coffee → decko/mod.js.coffee} +0 -23
  362. data/mod/machines/lib/javascript/{decko_modal.js.coffee → decko/modal.js.coffee} +11 -15
  363. data/mod/machines/lib/javascript/decko/name_editor.js.coffee +51 -0
  364. data/mod/machines/lib/javascript/{decko_navbox.js.coffee → decko/navbox.js.coffee} +0 -0
  365. data/mod/machines/lib/javascript/{decko_nest_editor.js.coffee → decko/nest_editor.js.coffee} +0 -0
  366. data/mod/machines/lib/javascript/{decko_nest_editor_name.js.coffee → decko/nest_editor_name.js.coffee} +0 -0
  367. data/mod/machines/lib/javascript/{decko_nest_editor_options.js.coffee → decko/nest_editor_options.js.coffee} +0 -0
  368. data/mod/machines/lib/javascript/{decko_nest_editor_rules.js.coffee → decko/nest_editor_rules.js.coffee} +0 -0
  369. data/mod/machines/lib/javascript/{decko_overlay.js.coffee → decko/overlay.js.coffee} +3 -0
  370. data/mod/machines/lib/javascript/{decko_recaptcha.js.coffee → decko/recaptcha.js.coffee} +0 -0
  371. data/mod/machines/lib/javascript/{decko_slot.js.coffee → decko/slot.js.coffee} +33 -4
  372. data/mod/machines/lib/javascript/decko/slot_ready.js.coffee +11 -0
  373. data/mod/machines/lib/javascript/{decko_slotter.js.coffee → decko/slotter.js.coffee} +6 -14
  374. data/mod/machines/lib/javascript/{decko_upload.js.coffee → decko/upload.js.coffee} +0 -0
  375. data/mod/machines/lib/stylesheets/style_cards.scss +109 -26
  376. data/mod/machines/set/abstract/machine.rb +3 -3
  377. data/mod/machines/set/abstract/skin_box.rb +1 -2
  378. data/mod/machines/set/right/machine_output.rb +4 -0
  379. data/mod/machines/set/self/script_decko.rb +11 -0
  380. data/mod/navbar/set/abstract/pointer/html_views.rb +5 -0
  381. data/mod/navbar/set/abstract/roles_dropdown.rb +15 -0
  382. data/mod/navbar/set/all/navbar_links.rb +58 -0
  383. data/mod/navbar/set/right/enabled_roles.rb +63 -0
  384. data/mod/navbar/set/right/enabled_roles/role_checkbox.haml +4 -0
  385. data/mod/navbar/set/self/account_links.rb +98 -0
  386. data/mod/navbar/set/self/dropdown_divider.rb +9 -0
  387. data/mod/{search → navbar}/set/self/navbox.rb +2 -2
  388. data/mod/navbar/set/type/html.rb +14 -0
  389. data/mod/navbar/spec/set/all/navbar_links_spec.rb +55 -0
  390. data/mod/navbar/spec/set/right/enabled_roles_spec.rb +12 -0
  391. data/mod/{account → navbar}/spec/set/self/account_links_spec.rb +2 -2
  392. data/mod/{search → navbar}/spec/set/self/navbox_spec.rb +0 -0
  393. data/mod/pointer/set/abstract/00_paging_params.rb +10 -3
  394. data/mod/pointer/set/abstract/01_paging.rb +3 -12
  395. data/mod/pointer/set/abstract/02_pointer/html_views.rb +6 -14
  396. data/mod/pointer/set/abstract/02_pointer/html_views/filter.rb +6 -5
  397. data/mod/pointer/set/abstract/02_pointer/html_views/filter/filter_items.haml +8 -10
  398. data/mod/pointer/set/abstract/02_pointer/other_views.rb +1 -2
  399. data/mod/pointer/set/type/link_list.rb +23 -0
  400. data/mod/pointer/set/type/list.rb +16 -0
  401. data/mod/pointer/set/type/mirror_list.rb +93 -0
  402. data/{tmpsets/set/mod016-standard/type/list.rb → mod/pointer/set/type/mirrored_list.rb} +24 -32
  403. data/mod/pointer/set/type/pointer.rb +1 -1
  404. data/mod/pointer/spec/set/abstract/paging_params_spec.rb +12 -0
  405. data/mod/pointer/spec/set/type/link_list_spec.rb +15 -0
  406. data/mod/pointer/spec/set/type/link_spec.rb +17 -0
  407. data/mod/{standard/spec/set/type/listed_by_spec.rb → pointer/spec/set/type/mirror_list_spec.rb} +8 -16
  408. data/mod/{standard/spec/set/type/list_spec.rb → pointer/spec/set/type/mirrored_list_spec.rb} +9 -16
  409. data/mod/rules/set/rule/bridge_rules_editor.rb +4 -3
  410. data/mod/rules/set/rule/editor.rb +4 -4
  411. data/mod/rules/set/rule/rule_form.rb +1 -1
  412. data/mod/rules/set/rule/table.rb +2 -2
  413. data/mod/rules/set/rule/table_row.rb +4 -3
  414. data/mod/rules/set/type/set/html_views.rb +1 -1
  415. data/mod/rules/set/type/set/html_views/nest_rules.rb +1 -1
  416. data/mod/rules/set/type/set/rules_filter.rb +5 -1
  417. data/mod/rules/set/type/set/setting_lists.rb +1 -1
  418. data/mod/rules/spec/set/type/set/html_views_spec.rb +1 -1
  419. data/mod/rules/spec/set/type/set_spec.rb +1 -1
  420. data/mod/search/lib/card/filter_query.rb +0 -6
  421. data/mod/search/set/abstract/00_filter_helper.rb +6 -8
  422. data/mod/search/set/abstract/03_filter.rb +2 -107
  423. data/mod/search/set/abstract/03_filter/_filter_input.haml +8 -0
  424. data/mod/search/set/abstract/03_filter/filter_form.haml +53 -0
  425. data/mod/search/set/abstract/03_filter/filter_form.rb +77 -0
  426. data/mod/search/set/abstract/03_filter/filtered_content.haml +5 -0
  427. data/mod/search/set/abstract/{01_filter_form_helper.rb → 03_filter/form_helper.rb} +39 -17
  428. data/mod/search/set/abstract/03_filter/query_construction.rb +36 -0
  429. data/mod/search/set/abstract/03_filter/quick_filters.haml +14 -0
  430. data/mod/search/set/abstract/04_right_filter_form.rb +6 -2
  431. data/mod/search/set/abstract/search.rb +2 -1
  432. data/mod/search/set/abstract/search/views.rb +4 -3
  433. data/mod/search/set/abstract/wql_search.rb +5 -5
  434. data/mod/search/set/self/recent.rb +1 -1
  435. data/mod/search/spec/set/abstract/filter_spec.rb +7 -13
  436. data/mod/search/template/abstract/search/select_item.haml +8 -7
  437. data/mod/settings/set/abstract/permission.rb +1 -2
  438. data/mod/settings/set/abstract/templated_nests.rb +7 -0
  439. data/mod/settings/set/right/add_help.rb +1 -11
  440. data/mod/settings/set/right/default.rb +6 -1
  441. data/mod/settings/set/right/help.rb +2 -2
  442. data/mod/settings/set/right/script.rb +4 -0
  443. data/mod/settings/set/right/structure.rb +6 -1
  444. data/mod/settings/set/right/style.rb +4 -0
  445. data/mod/settings/set/type/setting.rb +30 -25
  446. data/mod/settings/spec/set/right/structure_spec.rb +1 -1
  447. data/mod/solid_cache/set/right/solid_cache.rb +4 -0
  448. data/mod/standard/file/logo/image-original.svg +2 -2
  449. data/mod/standard/set/all/comment.rb +1 -2
  450. data/mod/standard/set/all/error.rb +2 -3
  451. data/mod/standard/set/all/links.rb +8 -2
  452. data/mod/standard/set/all/list_changes.rb +5 -5
  453. data/mod/standard/set/all/path.rb +26 -0
  454. data/mod/standard/set/all/rich_html/content.rb +33 -6
  455. data/mod/standard/set/all/rich_html/error.rb +7 -6
  456. data/mod/standard/set/all/rich_html/frame.rb +3 -2
  457. data/mod/standard/set/all/rich_html/header.rb +4 -12
  458. data/mod/standard/set/all/rich_html/html_views/help.rb +17 -4
  459. data/mod/standard/set/all/rich_html/html_views/info.rb +30 -5
  460. data/mod/standard/set/all/rich_html/menu.rb +28 -14
  461. data/mod/standard/set/all/rich_html/modal.rb +4 -5
  462. data/mod/standard/set/all/rich_html/overlay.rb +3 -3
  463. data/mod/standard/set/all/rich_html/process_layout.rb +1 -0
  464. data/mod/standard/set/all/rich_html/show.rb +2 -2
  465. data/mod/standard/set/all/rich_html/title.rb +17 -6
  466. data/mod/standard/set/all/rich_html/wrapper.rb +1 -1
  467. data/mod/standard/set/right/head.rb +4 -0
  468. data/mod/standard/set/type/basic.rb +21 -10
  469. data/mod/standard/set/type/cardtype.rb +28 -9
  470. data/mod/standard/set/type/session.rb +25 -9
  471. data/mod/standard/spec/set/all/path_spec.rb +5 -0
  472. data/mod/standard/spec/set/all/rich_html/menu_spec.rb +1 -1
  473. data/mod/standard/spec/set/all/rich_html/process_layout_spec.rb +7 -7
  474. data/mod/standard/spec/set/all/rich_html/wrapper_spec.rb +2 -2
  475. data/mod/standard/spec/set/type/cardtype_spec.rb +8 -8
  476. data/mod/standard/spec/set/type/layout_type_spec.rb +7 -5
  477. data/mod/standard/spec/set/type/search_type_spec.rb +2 -2
  478. data/mod/standard/spec/set/type/session_spec.rb +33 -0
  479. data/mod/tinymce_editor/lib/javascript/script_tinymce_config.js.coffee +6 -1
  480. data/mod/utility/set/abstract/bs_badge.rb +3 -2
  481. data/mod/utility/set/abstract/bs_badge/labeled_badge.haml +1 -1
  482. data/mod/utility/set/abstract/filterable.rb +13 -0
  483. data/mod/utility/set/abstract/filterable_bar.rb +11 -0
  484. data/mod/utility/set/abstract/media.rb +2 -18
  485. data/mod/utility/set/abstract/media/media_snippet.haml +6 -7
  486. data/mod/utility/spec/set/abstract/media_spec.rb +0 -6
  487. data/mod/virtual/set/abstract/virtual_cache.rb +1 -1
  488. data/tmpsets/set/mod001-utility/abstract/bs_badge.rb +30 -0
  489. data/tmpsets/set/mod001-utility/abstract/filterable.rb +25 -0
  490. data/tmpsets/set/mod001-utility/abstract/media.rb +42 -0
  491. data/tmpsets/set/mod001-utility/abstract/utility.rb +22 -0
  492. data/tmpsets/set/{mod001-admin → mod002-admin}/self/admin.rb +54 -32
  493. data/tmpsets/set/{mod001-admin → mod002-admin}/self/admin_info.rb +24 -26
  494. data/tmpsets/set/mod002-admin/self/recaptcha_proxy.rb +12 -0
  495. data/tmpsets/set/mod002-admin/self/recaptcha_secret_key.rb +18 -0
  496. data/tmpsets/set/mod002-admin/self/recaptcha_site_key.rb +18 -0
  497. data/tmpsets/set/mod002-admin/self/trash.rb +72 -0
  498. data/tmpsets/set/mod002-admin/self/version.rb +22 -0
  499. data/tmpsets/set/mod003-core/abstract/code_file.rb +91 -0
  500. data/tmpsets/set/mod003-core/abstract/haml_file.rb +29 -0
  501. data/tmpsets/set/mod003-core/abstract/lock.rb +35 -0
  502. data/tmpsets/set/mod003-core/abstract/vendor_code_file.rb +19 -0
  503. data/tmpsets/set/{mod002-core/all/actify.rb → mod003-core/all/abort.rb} +31 -48
  504. data/tmpsets/set/mod003-core/all/actify.rb +74 -0
  505. data/tmpsets/set/{mod002-core → mod003-core}/all/active_card.rb +7 -6
  506. data/tmpsets/set/mod003-core/all/assign_attributes.rb +131 -0
  507. data/tmpsets/set/mod003-core/all/cache.rb +123 -0
  508. data/tmpsets/set/mod003-core/all/chunk.rb +156 -0
  509. data/tmpsets/set/mod003-core/all/codename.rb +36 -0
  510. data/tmpsets/set/mod003-core/all/collection.rb +64 -0
  511. data/tmpsets/set/mod003-core/all/content.rb +121 -0
  512. data/tmpsets/set/mod003-core/all/contextual_content.rb +37 -0
  513. data/tmpsets/set/{mod002-core → mod003-core}/all/debug.rb +7 -5
  514. data/tmpsets/set/mod003-core/all/erb.rb +20 -0
  515. data/tmpsets/set/mod003-core/all/event_conditions.rb +142 -0
  516. data/tmpsets/set/mod003-core/all/export.rb +77 -0
  517. data/tmpsets/set/mod003-core/all/extended.rb +58 -0
  518. data/tmpsets/set/mod003-core/all/fetch.rb +159 -0
  519. data/tmpsets/set/mod003-core/all/fetch_helper.rb +162 -0
  520. data/tmpsets/set/mod003-core/all/haml.rb +84 -0
  521. data/tmpsets/set/mod003-core/all/i18n.rb +19 -0
  522. data/tmpsets/set/mod003-core/all/initialize.rb +55 -0
  523. data/tmpsets/set/mod003-core/all/item.rb +123 -0
  524. data/tmpsets/set/mod003-core/all/layouts.rb +43 -0
  525. data/tmpsets/set/mod003-core/all/location_history.rb +28 -0
  526. data/tmpsets/set/mod003-core/all/name.rb +242 -0
  527. data/tmpsets/set/mod003-core/all/name_events.rb +118 -0
  528. data/tmpsets/set/mod003-core/all/observer.rb +31 -0
  529. data/tmpsets/set/{mod002-core → mod003-core}/all/pattern.rb +12 -15
  530. data/tmpsets/set/{mod002-core → mod003-core}/all/permissions.rb +63 -101
  531. data/tmpsets/set/mod003-core/all/phases.rb +25 -0
  532. data/tmpsets/set/{mod002-core → mod003-core}/all/references.rb +42 -33
  533. data/tmpsets/set/mod003-core/all/rename.rb +47 -0
  534. data/tmpsets/set/{mod002-core → mod003-core}/all/rules.rb +17 -23
  535. data/tmpsets/set/mod003-core/all/stages.rb +26 -0
  536. data/tmpsets/set/mod003-core/all/states.rb +91 -0
  537. data/tmpsets/set/{mod002-core → mod003-core}/all/subcards.rb +45 -20
  538. data/tmpsets/set/mod003-core/all/tabs.rb +59 -0
  539. data/tmpsets/set/{mod002-core → mod003-core}/all/templating.rb +24 -22
  540. data/tmpsets/set/mod003-core/all/trash.rb +135 -0
  541. data/tmpsets/set/{mod002-core → mod003-core}/all/type.rb +23 -13
  542. data/tmpsets/set/mod003-core/all/update_read_rules.rb +39 -0
  543. data/tmpsets/set/mod003-core/all/utils.rb +93 -0
  544. data/tmpsets/set/mod004-virtual/abstract/virtual_cache.rb +52 -0
  545. data/tmpsets/set/mod005-history/all/history.rb +85 -0
  546. data/tmpsets/set/mod005-history/all/history/act_listing.rb +133 -0
  547. data/tmpsets/set/mod005-history/all/history/actions.rb +133 -0
  548. data/tmpsets/set/mod005-history/all/history/acts.rb +21 -0
  549. data/tmpsets/set/mod005-history/all/history/events.rb +108 -0
  550. data/tmpsets/set/mod005-history/all/history/last.rb +107 -0
  551. data/tmpsets/set/mod005-history/all/history/revision.rb +73 -0
  552. data/tmpsets/set/mod005-history/all/history/selected.rb +73 -0
  553. data/tmpsets/set/mod005-history/all/history/views.rb +44 -0
  554. data/tmpsets/set/mod005-history/all/history_bridge.rb +75 -0
  555. data/tmpsets/set/mod006-basic_formats/all/all_css.rb +46 -0
  556. data/tmpsets/set/mod006-basic_formats/all/all_csv.rb +106 -0
  557. data/tmpsets/set/mod006-basic_formats/all/all_js.rb +19 -0
  558. data/tmpsets/set/mod006-basic_formats/all/base.rb +189 -0
  559. data/tmpsets/set/mod006-basic_formats/all/file.rb +18 -0
  560. data/tmpsets/set/mod006-basic_formats/all/head.rb +155 -0
  561. data/tmpsets/set/mod006-basic_formats/all/json.rb +161 -0
  562. data/tmpsets/set/mod006-basic_formats/all/rss.rb +85 -0
  563. data/tmpsets/set/mod006-basic_formats/all/text.rb +16 -0
  564. data/tmpsets/set/mod006-basic_formats/self/head.rb +31 -0
  565. data/tmpsets/set/mod007-item/all/bar.rb +124 -0
  566. data/tmpsets/set/mod007-item/all/box.rb +25 -0
  567. data/tmpsets/set/mod008-pointer/abstract/00_paging_params.rb +35 -0
  568. data/tmpsets/set/mod008-pointer/abstract/01_paging.rb +157 -0
  569. data/tmpsets/set/mod008-pointer/abstract/01_paging/paging_links.rb +98 -0
  570. data/tmpsets/set/mod008-pointer/abstract/02_pointer.rb +18 -0
  571. data/tmpsets/set/mod008-pointer/abstract/02_pointer/events.rb +59 -0
  572. data/tmpsets/set/mod008-pointer/abstract/02_pointer/html_views.rb +117 -0
  573. data/tmpsets/set/mod008-pointer/abstract/02_pointer/html_views/filter.rb +73 -0
  574. data/tmpsets/set/mod008-pointer/abstract/02_pointer/item_api.rb +181 -0
  575. data/tmpsets/set/mod008-pointer/abstract/02_pointer/options_api.rb +93 -0
  576. data/tmpsets/set/mod008-pointer/abstract/02_pointer/other_views.rb +111 -0
  577. data/tmpsets/set/mod008-pointer/abstract/code_pointer.rb +44 -0
  578. data/tmpsets/set/mod008-pointer/right/options.rb +13 -0
  579. data/tmpsets/set/mod008-pointer/self/input_options.rb +22 -0
  580. data/tmpsets/set/mod008-pointer/self/script_editors.rb +10 -0
  581. data/tmpsets/set/mod008-pointer/self/script_libraries.rb +10 -0
  582. data/tmpsets/set/mod008-pointer/self/script_mods.rb +10 -0
  583. data/tmpsets/set/mod008-pointer/self/script_pointer_config.rb +18 -0
  584. data/tmpsets/set/mod008-pointer/self/style_libraries.rb +10 -0
  585. data/tmpsets/set/mod008-pointer/self/style_mods.rb +10 -0
  586. data/tmpsets/set/mod008-pointer/type/pointer.rb +19 -0
  587. data/tmpsets/set/mod009-ace_editor/abstract/ace_editor.rb +20 -0
  588. data/tmpsets/set/mod009-ace_editor/self/script_ace.rb +13 -0
  589. data/tmpsets/set/mod009-ace_editor/self/script_ace_config.rb +13 -0
  590. data/tmpsets/set/mod010-prosemirror_editor/abstract/prosemirror_editor.rb +16 -0
  591. data/tmpsets/set/mod010-prosemirror_editor/self/script_prosemirror.rb +13 -0
  592. data/tmpsets/set/mod010-prosemirror_editor/self/script_prosemirror_config.rb +14 -0
  593. data/tmpsets/set/mod010-prosemirror_editor/self/style_prosemirror.rb +12 -0
  594. data/tmpsets/set/mod011-tinymce_editor/abstract/tinymce_editor.rb +15 -0
  595. data/tmpsets/set/mod011-tinymce_editor/self/script_tinymce.rb +13 -0
  596. data/tmpsets/set/mod011-tinymce_editor/self/script_tinymce_config.rb +13 -0
  597. data/tmpsets/set/{mod009-solid_cache → mod012-solid_cache}/abstract/solid_cache.rb +47 -38
  598. data/tmpsets/set/mod012-solid_cache/all/solid_cache.rb +23 -0
  599. data/tmpsets/set/mod012-solid_cache/right/solid_cache.rb +57 -0
  600. data/tmpsets/set/mod013-basic_types/type/html.rb +32 -0
  601. data/tmpsets/set/mod013-basic_types/type/json.rb +40 -0
  602. data/tmpsets/set/mod013-basic_types/type/plain_text.rb +18 -0
  603. data/tmpsets/set/mod014-machines/abstract/machine.rb +202 -0
  604. data/tmpsets/set/mod014-machines/abstract/machine/output_cache.rb +25 -0
  605. data/tmpsets/set/mod014-machines/abstract/machine/output_update.rb +68 -0
  606. data/tmpsets/set/{mod011-machines → mod014-machines}/abstract/machine_input.rb +11 -13
  607. data/tmpsets/set/mod014-machines/abstract/script.rb +93 -0
  608. data/tmpsets/set/mod014-machines/abstract/skin_box.rb +42 -0
  609. data/tmpsets/set/mod014-machines/all/reset_machines.rb +31 -0
  610. data/tmpsets/set/mod014-machines/right/machine_cache.rb +14 -0
  611. data/tmpsets/set/mod014-machines/right/machine_input.rb +16 -0
  612. data/tmpsets/set/{mod011-machines → mod014-machines}/right/machine_output.rb +14 -8
  613. data/tmpsets/set/mod014-machines/self/script_decko.rb +20 -0
  614. data/tmpsets/set/mod014-machines/self/script_html5shiv_printshiv.rb +20 -0
  615. data/tmpsets/set/mod014-machines/self/script_jquery.rb +19 -0
  616. data/tmpsets/set/mod014-machines/self/script_jquery_helper.rb +23 -0
  617. data/tmpsets/set/mod014-machines/self/style_bootstrap_compatible.rb +10 -0
  618. data/tmpsets/set/mod014-machines/self/style_cards.rb +10 -0
  619. data/tmpsets/set/mod014-machines/self/style_jquery_ui_smoothness.rb +10 -0
  620. data/tmpsets/set/mod014-machines/type/coffee_script.rb +34 -0
  621. data/tmpsets/set/mod014-machines/type/css.rb +94 -0
  622. data/tmpsets/set/mod014-machines/type/java_script.rb +18 -0
  623. data/tmpsets/set/mod014-machines/type/scss.rb +30 -0
  624. data/tmpsets/set/mod014-machines/type/skin.rb +18 -0
  625. data/tmpsets/set/mod015-settings/abstract/permission.rb +127 -0
  626. data/tmpsets/set/mod015-settings/abstract/templated_nests.rb +16 -0
  627. data/tmpsets/set/mod015-settings/right/add_help.rb +10 -0
  628. data/tmpsets/set/mod015-settings/right/autoname.rb +12 -0
  629. data/tmpsets/set/mod015-settings/right/comment.rb +10 -0
  630. data/tmpsets/set/mod015-settings/right/create.rb +10 -0
  631. data/tmpsets/set/mod015-settings/right/default.rb +27 -0
  632. data/tmpsets/set/mod015-settings/right/delete.rb +10 -0
  633. data/tmpsets/set/mod015-settings/right/help.rb +23 -0
  634. data/tmpsets/set/{mod002-core/all/update_read_rules.rb → mod015-settings/right/read.rb} +43 -56
  635. data/tmpsets/set/mod015-settings/right/script.rb +22 -0
  636. data/tmpsets/set/mod015-settings/right/structure.rb +75 -0
  637. data/tmpsets/set/mod015-settings/right/style.rb +65 -0
  638. data/tmpsets/set/mod015-settings/right/update.rb +10 -0
  639. data/tmpsets/set/mod015-settings/self/accountable.rb +12 -0
  640. data/tmpsets/set/mod015-settings/self/add_help.rb +11 -0
  641. data/tmpsets/set/mod015-settings/self/autoname.rb +11 -0
  642. data/tmpsets/set/mod015-settings/self/captcha.rb +11 -0
  643. data/tmpsets/set/mod015-settings/self/create.rb +12 -0
  644. data/tmpsets/set/mod015-settings/self/csv_structure.rb +11 -0
  645. data/tmpsets/set/mod015-settings/self/default.rb +12 -0
  646. data/tmpsets/set/mod015-settings/self/default_html_view.rb +11 -0
  647. data/tmpsets/set/mod015-settings/self/delete.rb +12 -0
  648. data/tmpsets/set/mod015-settings/self/follow_fields.rb +11 -0
  649. data/tmpsets/set/mod015-settings/self/head.rb +11 -0
  650. data/tmpsets/set/mod015-settings/self/help.rb +12 -0
  651. data/tmpsets/set/mod015-settings/self/input.rb +12 -0
  652. data/tmpsets/set/mod015-settings/self/layout.rb +11 -0
  653. data/tmpsets/set/mod015-settings/self/on_create.rb +11 -0
  654. data/tmpsets/set/mod015-settings/self/on_delete.rb +11 -0
  655. data/tmpsets/set/mod015-settings/self/on_update.rb +11 -0
  656. data/tmpsets/set/mod015-settings/self/options.rb +13 -0
  657. data/tmpsets/set/mod015-settings/self/options_label.rb +13 -0
  658. data/tmpsets/set/mod015-settings/self/read.rb +12 -0
  659. data/tmpsets/set/mod015-settings/self/recent_settings.rb +16 -0
  660. data/tmpsets/set/mod015-settings/self/script.rb +11 -0
  661. data/tmpsets/set/mod015-settings/self/structure.rb +12 -0
  662. data/tmpsets/set/mod015-settings/self/style.rb +11 -0
  663. data/tmpsets/set/mod015-settings/self/table_of_contents.rb +11 -0
  664. data/tmpsets/set/mod015-settings/self/thanks.rb +12 -0
  665. data/tmpsets/set/mod015-settings/self/update.rb +12 -0
  666. data/tmpsets/set/{mod012-settings → mod015-settings}/type/setting.rb +33 -36
  667. data/tmpsets/set/mod016-email/abstract/email_field.rb +50 -0
  668. data/tmpsets/set/mod016-email/abstract/test_context.rb +35 -0
  669. data/tmpsets/set/mod016-email/all/email_html.rb +18 -0
  670. data/tmpsets/set/mod016-email/all/email_text.rb +23 -0
  671. data/tmpsets/set/mod016-email/right/bcc.rb +10 -0
  672. data/tmpsets/set/mod016-email/right/cc.rb +10 -0
  673. data/tmpsets/set/mod016-email/right/from.rb +10 -0
  674. data/tmpsets/set/mod016-email/right/html_message.rb +22 -0
  675. data/tmpsets/set/mod016-email/right/subject.rb +10 -0
  676. data/tmpsets/set/mod016-email/right/text_message.rb +10 -0
  677. data/tmpsets/set/mod016-email/right/to.rb +10 -0
  678. data/tmpsets/set/mod016-email/type/email_template.rb +100 -0
  679. data/tmpsets/set/mod016-email/type/email_template/email_config.rb +90 -0
  680. data/tmpsets/set/mod017-follow/abstract/follow_option.rb +65 -0
  681. data/tmpsets/set/mod017-follow/all/follow.rb +42 -0
  682. data/tmpsets/set/mod017-follow/all/follow/follow_link.rb +69 -0
  683. data/tmpsets/set/mod017-follow/all/follow/follow_link_views.rb +38 -0
  684. data/tmpsets/set/mod017-follow/all/follow/followed_by.rb +80 -0
  685. data/tmpsets/set/mod017-follow/all/follow/follower_ids.rb +118 -0
  686. data/tmpsets/set/mod017-follow/all/follow/start_follow_link.rb +19 -0
  687. data/tmpsets/set/mod017-follow/all/follow/stop_follow_link.rb +20 -0
  688. data/tmpsets/set/mod017-follow/all/notify.rb +93 -0
  689. data/tmpsets/set/mod017-follow/all/notify/base_views.rb +139 -0
  690. data/tmpsets/set/mod017-follow/all/notify/html_views.rb +26 -0
  691. data/tmpsets/set/mod017-follow/right/account.rb +22 -0
  692. data/tmpsets/set/mod017-follow/right/follow.rb +127 -0
  693. data/tmpsets/set/mod017-follow/right/follow_fields.rb +12 -0
  694. data/tmpsets/set/mod017-follow/right/followers.rb +35 -0
  695. data/tmpsets/set/mod017-follow/right/following.rb +59 -0
  696. data/tmpsets/set/mod017-follow/self/always.rb +22 -0
  697. data/tmpsets/set/mod017-follow/self/created.rb +28 -0
  698. data/tmpsets/set/{mod013-email → mod017-follow}/self/edited.rb +8 -6
  699. data/tmpsets/set/mod017-follow/self/follow.rb +11 -0
  700. data/tmpsets/set/mod017-follow/self/follow_defaults.rb +97 -0
  701. data/tmpsets/set/mod017-follow/self/never.rb +22 -0
  702. data/tmpsets/set/mod017-follow/type/cardtype.rb +24 -0
  703. data/tmpsets/set/mod017-follow/type/set.rb +62 -0
  704. data/tmpsets/set/mod017-follow/type/user.rb +16 -0
  705. data/tmpsets/set/mod017-follow/type_plus_right/user/follow.rb +89 -0
  706. data/tmpsets/set/mod017-follow/type_plus_right/user/follow/follow_editor_helper.rb +130 -0
  707. data/tmpsets/set/{mod014-developer → mod018-developer}/all/event_viz.rb +10 -9
  708. data/tmpsets/set/{mod014-developer → mod018-developer}/all/view_viz.rb +8 -6
  709. data/tmpsets/set/{mod014-developer → mod018-developer}/right/debug.rb +12 -10
  710. data/tmpsets/set/{mod015-carrierwave → mod019-carrierwave}/abstract/attachment.rb +27 -21
  711. data/tmpsets/set/mod019-carrierwave/abstract/attachment/paths.rb +67 -0
  712. data/tmpsets/set/{mod015-carrierwave → mod019-carrierwave}/abstract/attachment/storage_type.rb +64 -40
  713. data/tmpsets/set/{mod015-carrierwave → mod019-carrierwave}/abstract/attachment/upload_cache.rb +28 -17
  714. data/tmpsets/set/{mod015-carrierwave → mod019-carrierwave}/all/file_utils.rb +18 -7
  715. data/tmpsets/set/{mod015-carrierwave → mod019-carrierwave}/self/admin.rb +10 -8
  716. data/tmpsets/set/mod019-carrierwave/self/favicon.rb +20 -0
  717. data/tmpsets/set/mod019-carrierwave/self/new_file.rb +22 -0
  718. data/tmpsets/set/mod019-carrierwave/self/new_image.rb +22 -0
  719. data/tmpsets/set/mod019-carrierwave/type/file.rb +123 -0
  720. data/tmpsets/set/mod019-carrierwave/type/image.rb +182 -0
  721. data/tmpsets/set/mod020-search/abstract/00_filter_helper.rb +66 -0
  722. data/tmpsets/set/mod020-search/abstract/01_filter_form_helper.rb +125 -0
  723. data/tmpsets/set/mod020-search/abstract/02_search_params.rb +67 -0
  724. data/tmpsets/set/mod020-search/abstract/03_filter.rb +140 -0
  725. data/tmpsets/set/mod020-search/abstract/04_right_filter_form.rb +31 -0
  726. data/tmpsets/set/mod020-search/abstract/search.rb +92 -0
  727. data/tmpsets/set/mod020-search/abstract/search/views.rb +168 -0
  728. data/tmpsets/set/mod020-search/abstract/wql_search.rb +120 -0
  729. data/tmpsets/set/mod020-search/self/navbox.rb +41 -0
  730. data/tmpsets/set/mod020-search/self/recent.rb +44 -0
  731. data/tmpsets/set/mod020-search/self/search.rb +103 -0
  732. data/tmpsets/set/mod020-search/type/search_type.rb +88 -0
  733. data/tmpsets/set/mod021-standard/all/comment.rb +88 -0
  734. data/tmpsets/set/mod021-standard/all/error.rb +85 -0
  735. data/tmpsets/set/mod021-standard/all/links.rb +158 -0
  736. data/tmpsets/set/{mod016-standard → mod021-standard}/all/list_changes.rb +15 -9
  737. data/tmpsets/set/mod021-standard/all/path.rb +185 -0
  738. data/tmpsets/set/mod021-standard/all/rich_html.rb +13 -0
  739. data/tmpsets/set/mod021-standard/all/rich_html/alert.rb +32 -0
  740. data/tmpsets/set/mod021-standard/all/rich_html/content.rb +144 -0
  741. data/tmpsets/set/mod021-standard/all/rich_html/error.rb +211 -0
  742. data/tmpsets/set/mod021-standard/all/rich_html/frame.rb +62 -0
  743. data/tmpsets/set/mod021-standard/all/rich_html/header.rb +78 -0
  744. data/tmpsets/set/mod021-standard/all/rich_html/html_views/help.rb +36 -0
  745. data/tmpsets/set/mod021-standard/all/rich_html/html_views/info.rb +93 -0
  746. data/tmpsets/set/mod021-standard/all/rich_html/html_views/size.rb +26 -0
  747. data/tmpsets/set/mod021-standard/all/rich_html/menu.rb +75 -0
  748. data/tmpsets/set/mod021-standard/all/rich_html/modal.rb +128 -0
  749. data/tmpsets/set/mod021-standard/all/rich_html/overlay.rb +91 -0
  750. data/tmpsets/set/mod021-standard/all/rich_html/process_layout.rb +80 -0
  751. data/tmpsets/set/mod021-standard/all/rich_html/show.rb +46 -0
  752. data/tmpsets/set/mod021-standard/all/rich_html/title.rb +56 -0
  753. data/tmpsets/set/mod021-standard/all/rich_html/wrapper.rb +156 -0
  754. data/tmpsets/set/mod021-standard/right/discussion.rb +12 -0
  755. data/tmpsets/set/mod021-standard/right/head.rb +22 -0
  756. data/tmpsets/set/mod021-standard/right/when_created.rb +15 -0
  757. data/tmpsets/set/mod021-standard/right/when_last_edited.rb +15 -0
  758. data/tmpsets/set/mod021-standard/self/alerts.rb +14 -0
  759. data/tmpsets/set/mod021-standard/self/codenames.rb +10 -0
  760. data/tmpsets/set/mod021-standard/self/foot.rb +15 -0
  761. data/tmpsets/set/mod021-standard/self/home.rb +18 -0
  762. data/tmpsets/set/mod021-standard/self/now.rb +15 -0
  763. data/tmpsets/set/{mod016-standard → mod021-standard}/type/basic.rb +37 -24
  764. data/tmpsets/set/mod021-standard/type/cardtype.rb +104 -0
  765. data/tmpsets/set/mod021-standard/type/layout_type.rb +25 -0
  766. data/{mod/standard/set → tmpsets/set/mod021-standard}/type/list.rb +9 -0
  767. data/{mod/standard/set → tmpsets/set/mod021-standard}/type/listed_by.rb +9 -0
  768. data/tmpsets/set/mod021-standard/type/notification_template.rb +42 -0
  769. data/tmpsets/set/mod021-standard/type/number.rb +31 -0
  770. data/tmpsets/set/mod021-standard/type/phrase.rb +14 -0
  771. data/tmpsets/set/mod021-standard/type/session.rb +42 -0
  772. data/tmpsets/set/mod021-standard/type/toggle.rb +39 -0
  773. data/tmpsets/set/mod021-standard/type/uri.rb +24 -0
  774. data/tmpsets/set/mod022-rules/rstar/rule_user.rb +17 -0
  775. data/tmpsets/set/mod022-rules/rule/bridge_rules_editor.rb +42 -0
  776. data/tmpsets/set/mod022-rules/rule/editor.rb +193 -0
  777. data/tmpsets/set/mod022-rules/rule/rule_form.rb +66 -0
  778. data/tmpsets/set/mod022-rules/rule/rule_form/buttons.rb +53 -0
  779. data/tmpsets/set/mod022-rules/rule/rule_form/form_elements.rb +61 -0
  780. data/tmpsets/set/mod022-rules/rule/rule_form/rule_set_radio.rb +94 -0
  781. data/tmpsets/set/mod022-rules/rule/rule_form/set_selection.rb +55 -0
  782. data/tmpsets/set/mod022-rules/rule/rules.rb +93 -0
  783. data/tmpsets/set/mod022-rules/rule/table.rb +36 -0
  784. data/tmpsets/set/mod022-rules/rule/table_row.rb +72 -0
  785. data/tmpsets/set/mod022-rules/self/script_rules.rb +12 -0
  786. data/tmpsets/set/mod022-rules/type/set.rb +91 -0
  787. data/tmpsets/set/mod022-rules/type/set/html_views.rb +78 -0
  788. data/tmpsets/set/mod022-rules/type/set/html_views/nest_rules.rb +23 -0
  789. data/tmpsets/set/mod022-rules/type/set/html_views/rules_bridge.rb +30 -0
  790. data/tmpsets/set/mod022-rules/type/set/html_views/template.rb +52 -0
  791. data/tmpsets/set/mod022-rules/type/set/rules_filter.rb +55 -0
  792. data/tmpsets/set/mod022-rules/type/set/setting_lists.rb +92 -0
  793. data/tmpsets/set/mod023-edit/all/bridge.rb +72 -0
  794. data/tmpsets/set/mod023-edit/all/bridge/follow_section.rb +46 -0
  795. data/tmpsets/set/mod023-edit/all/bridge/tab_views.rb +84 -0
  796. data/tmpsets/set/mod023-edit/all/bridge/tab_visibility.rb +60 -0
  797. data/tmpsets/set/mod023-edit/all/edit_content.rb +73 -0
  798. data/tmpsets/set/mod023-edit/all/edit_inline.rb +57 -0
  799. data/tmpsets/set/mod023-edit/all/edit_name.rb +101 -0
  800. data/tmpsets/set/mod023-edit/all/edit_type.rb +37 -0
  801. data/tmpsets/set/mod023-edit/all/editing.rb +96 -0
  802. data/tmpsets/set/mod023-edit/all/editor.rb +56 -0
  803. data/tmpsets/set/mod023-edit/all/form.rb +264 -0
  804. data/tmpsets/set/mod023-edit/all/form_buttons.rb +64 -0
  805. data/tmpsets/set/mod023-edit/all/form_elements.rb +79 -0
  806. data/tmpsets/set/mod023-edit/all/formgroup.rb +46 -0
  807. data/tmpsets/set/mod023-edit/all/nest_editor.rb +115 -0
  808. data/tmpsets/set/mod023-edit/all/nest_editor/nest_parser.rb +71 -0
  809. data/tmpsets/set/mod023-edit/all/nest_image.rb +46 -0
  810. data/tmpsets/set/mod023-edit/all/new.rb +135 -0
  811. data/tmpsets/set/mod024-date/all/calendar.rb +18 -0
  812. data/tmpsets/set/mod024-date/self/script_datepicker.rb +16 -0
  813. data/tmpsets/set/mod024-date/self/script_datepicker_config.rb +13 -0
  814. data/tmpsets/set/mod024-date/self/style_datepicker.rb +20 -0
  815. data/tmpsets/set/mod024-date/type/date.rb +14 -0
  816. data/tmpsets/set/{mod017-account → mod025-account}/all/account.rb +18 -12
  817. data/tmpsets/set/mod025-account/right/account.rb +199 -0
  818. data/tmpsets/set/mod025-account/right/email.rb +50 -0
  819. data/tmpsets/set/{mod017-account → mod025-account}/right/password.rb +29 -20
  820. data/tmpsets/set/mod025-account/right/salt.rb +18 -0
  821. data/tmpsets/set/mod025-account/right/status.rb +18 -0
  822. data/tmpsets/set/mod025-account/right/token.rb +63 -0
  823. data/{mod/account/set → tmpsets/set/mod025-account}/self/account_links.rb +29 -5
  824. data/tmpsets/set/mod025-account/self/signin.rb +188 -0
  825. data/tmpsets/set/mod025-account/type/signup.rb +191 -0
  826. data/tmpsets/set/mod025-account/type/user.rb +88 -0
  827. data/tmpsets/set/mod025-account/type_plus_right/user/email.rb +22 -0
  828. data/tmpsets/set/mod026-bootstrap/abstract/bootstrap_code_file.rb +62 -0
  829. data/tmpsets/set/mod026-bootstrap/abstract/bootswatch_theme.rb +165 -0
  830. data/tmpsets/set/mod026-bootstrap/abstract/bootswatch_theme/html_views.rb +39 -0
  831. data/tmpsets/set/mod026-bootstrap/all/bootstrap/accordion.rb +72 -0
  832. data/tmpsets/set/mod026-bootstrap/all/bootstrap/dropdown.rb +96 -0
  833. data/tmpsets/set/{mod018-bootstrap → mod026-bootstrap}/all/bootstrap/form.rb +11 -9
  834. data/tmpsets/set/mod026-bootstrap/all/bootstrap/helper.rb +57 -0
  835. data/tmpsets/set/mod026-bootstrap/all/bootstrap/icon.rb +118 -0
  836. data/tmpsets/set/mod026-bootstrap/all/bootstrap/navbar.rb +75 -0
  837. data/tmpsets/set/mod026-bootstrap/all/bootstrap/table.rb +100 -0
  838. data/tmpsets/set/mod026-bootstrap/all/bootstrap/tabs.rb +140 -0
  839. data/tmpsets/set/mod026-bootstrap/all/bootstrap/wrapper.rb +28 -0
  840. data/tmpsets/set/mod026-bootstrap/all/rich_bootstrap.rb +17 -0
  841. data/tmpsets/set/mod026-bootstrap/self/bootstrap_core.rb +22 -0
  842. data/tmpsets/set/mod026-bootstrap/self/bootstrap_functions.rb +14 -0
  843. data/tmpsets/set/mod026-bootstrap/self/font_awesome.rb +11 -0
  844. data/tmpsets/set/mod026-bootstrap/self/material_icons.rb +11 -0
  845. data/tmpsets/set/mod026-bootstrap/self/script_bootstrap.rb +21 -0
  846. data/tmpsets/set/mod026-bootstrap/self/script_load_select2.rb +11 -0
  847. data/tmpsets/set/mod026-bootstrap/self/script_select2.rb +21 -0
  848. data/tmpsets/set/mod026-bootstrap/self/smartmenu_css.rb +14 -0
  849. data/tmpsets/set/mod026-bootstrap/self/smartmenu_js.rb +14 -0
  850. data/tmpsets/set/mod026-bootstrap/self/style_bootstrap_cards.rb +10 -0
  851. data/tmpsets/set/mod026-bootstrap/self/style_bootstrap_colorpicker.rb +15 -0
  852. data/tmpsets/set/mod026-bootstrap/self/style_select2.rb +19 -0
  853. data/tmpsets/set/mod026-bootstrap/self/style_select2_bootstrap.rb +10 -0
  854. data/tmpsets/set/mod026-bootstrap/type/bootswatch_skin.rb +24 -0
  855. data/tmpsets/set/mod026-bootstrap/type/customized_bootswatch_skin.rb +130 -0
  856. data/tmpsets/set/mod026-bootstrap/type/customized_bootswatch_skin/html_views.rb +46 -0
  857. data/tmpsets/set/mod026-bootstrap/type_plus_right/customized_bootswatch_skin/colors.rb +122 -0
  858. data/tmpsets/set/mod027-google_analytics/all/google_analytics.rb +48 -0
  859. data/tmpsets/set/mod028-recaptcha/all/recaptcha.rb +116 -0
  860. data/tmpsets/set_pattern/100-all.rb +11 -13
  861. data/tmpsets/set_pattern/101-all_plus.rb +11 -13
  862. data/tmpsets/set_pattern/102-type.rb +12 -14
  863. data/tmpsets/set_pattern/103-star.rb +13 -15
  864. data/tmpsets/set_pattern/104-rstar.rb +13 -15
  865. data/tmpsets/set_pattern/105-rule.rb +28 -0
  866. data/tmpsets/set_pattern/106-right.rb +31 -0
  867. data/tmpsets/set_pattern/107-type_plus_right.rb +40 -0
  868. data/tmpsets/set_pattern/108-self.rb +30 -0
  869. metadata +533 -262
  870. data/lib/card/format/permission.rb +0 -83
  871. data/lib/card/set/format/wrapper.rb +0 -89
  872. data/lib/card/view/cache_action.rb +0 -140
  873. data/lib/card/view/stub.rb +0 -46
  874. data/lib/card/view/visibility.rb +0 -98
  875. data/lib/card/view/wrapper.rb +0 -28
  876. data/mod/machines/lib/javascript/decko.js.coffee +0 -209
  877. data/mod/machines/lib/javascript/script_card_menu.js.coffee +0 -3
  878. data/mod/machines/set/self/script_card_menu.rb +0 -1
  879. data/mod/machines/set/self/script_slot.rb +0 -10
  880. data/mod/search/template/abstract/03_filter/_filter_input.haml +0 -8
  881. data/mod/search/template/abstract/03_filter/filter_form.haml +0 -44
  882. data/tmpsets/set/mod001-admin/self/version.rb +0 -15
  883. data/tmpsets/set/mod002-core/abstract/code_file.rb +0 -79
  884. data/tmpsets/set/mod002-core/all/collection.rb +0 -313
  885. data/tmpsets/set/mod002-core/all/content.rb +0 -69
  886. data/tmpsets/set/mod002-core/all/erb.rb +0 -18
  887. data/tmpsets/set/mod002-core/all/event.rb +0 -62
  888. data/tmpsets/set/mod002-core/all/export.rb +0 -49
  889. data/tmpsets/set/mod002-core/all/fetch.rb +0 -335
  890. data/tmpsets/set/mod002-core/all/haml.rb +0 -14
  891. data/tmpsets/set/mod002-core/all/initialize.rb +0 -42
  892. data/tmpsets/set/mod002-core/all/location_history.rb +0 -15
  893. data/tmpsets/set/mod002-core/all/name.rb +0 -282
  894. data/tmpsets/set/mod002-core/all/name_validations.rb +0 -65
  895. data/tmpsets/set/mod002-core/all/phases.rb +0 -23
  896. data/tmpsets/set/mod002-core/all/stages.rb +0 -31
  897. data/tmpsets/set/mod002-core/all/states.rb +0 -31
  898. data/tmpsets/set/mod002-core/all/tracked_attributes.rb +0 -78
  899. data/tmpsets/set/mod002-core/all/trash.rb +0 -113
  900. data/tmpsets/set/mod002-core/all/utils.rb +0 -62
  901. data/tmpsets/set/mod002-core/all/view_cache.rb +0 -16
  902. data/tmpsets/set/mod003-history/all/actions.rb +0 -60
  903. data/tmpsets/set/mod003-history/all/content_history.rb +0 -168
  904. data/tmpsets/set/mod003-history/all/history.rb +0 -408
  905. data/tmpsets/set/mod004-basic_formats/all/all_css.rb +0 -45
  906. data/tmpsets/set/mod004-basic_formats/all/all_csv.rb +0 -56
  907. data/tmpsets/set/mod004-basic_formats/all/all_js.rb +0 -13
  908. data/tmpsets/set/mod004-basic_formats/all/base.rb +0 -155
  909. data/tmpsets/set/mod004-basic_formats/all/file.rb +0 -16
  910. data/tmpsets/set/mod004-basic_formats/all/json.rb +0 -76
  911. data/tmpsets/set/mod004-basic_formats/all/rss.rb +0 -77
  912. data/tmpsets/set/mod004-basic_formats/all/text.rb +0 -13
  913. data/tmpsets/set/mod004-basic_formats/self/01_head/javascript.rb +0 -79
  914. data/tmpsets/set/mod004-basic_formats/self/head.rb +0 -101
  915. data/tmpsets/set/mod005-pointer/abstract/01_pointer.rb +0 -193
  916. data/tmpsets/set/mod005-pointer/abstract/01_pointer/edit.rb +0 -224
  917. data/tmpsets/set/mod005-pointer/abstract/code_pointer.rb +0 -16
  918. data/tmpsets/set/mod005-pointer/self/script_editors.rb +0 -8
  919. data/tmpsets/set/mod005-pointer/self/script_mods.rb +0 -8
  920. data/tmpsets/set/mod005-pointer/self/script_pointer_config.rb +0 -10
  921. data/tmpsets/set/mod005-pointer/type/pointer.rb +0 -8
  922. data/tmpsets/set/mod006-ace_editor/abstract/ace_editor.rb +0 -18
  923. data/tmpsets/set/mod006-ace_editor/self/script_ace.rb +0 -10
  924. data/tmpsets/set/mod006-ace_editor/self/script_ace_config.rb +0 -12
  925. data/tmpsets/set/mod007-prosemirror_editor/abstract/prosemirror_editor.rb +0 -14
  926. data/tmpsets/set/mod007-prosemirror_editor/self/script_prosemirror.rb +0 -10
  927. data/tmpsets/set/mod007-prosemirror_editor/self/script_prosemirror_config.rb +0 -13
  928. data/tmpsets/set/mod009-solid_cache/all/solid_cache.rb +0 -21
  929. data/tmpsets/set/mod009-solid_cache/right/solid_cache.rb +0 -39
  930. data/tmpsets/set/mod010-basic_types/type/html.rb +0 -26
  931. data/tmpsets/set/mod010-basic_types/type/plain_text.rb +0 -19
  932. data/tmpsets/set/mod011-machines/abstract/machine.rb +0 -277
  933. data/tmpsets/set/mod011-machines/abstract/script.rb +0 -49
  934. data/tmpsets/set/mod011-machines/all/reset_machines.rb +0 -19
  935. data/tmpsets/set/mod011-machines/right/machine_cache.rb +0 -18
  936. data/tmpsets/set/mod011-machines/right/machine_input.rb +0 -10
  937. data/tmpsets/set/mod011-machines/self/script_card_menu.rb +0 -8
  938. data/tmpsets/set/mod011-machines/self/script_html5shiv_printshiv.rb +0 -8
  939. data/tmpsets/set/mod011-machines/self/script_jquery.rb +0 -8
  940. data/tmpsets/set/mod011-machines/self/script_jquery_helper.rb +0 -16
  941. data/tmpsets/set/mod011-machines/self/script_slot.rb +0 -14
  942. data/tmpsets/set/mod011-machines/self/style_bootstrap_compatible.rb +0 -8
  943. data/tmpsets/set/mod011-machines/self/style_cards.rb +0 -8
  944. data/tmpsets/set/mod011-machines/self/style_jquery_ui_smoothness.rb +0 -8
  945. data/tmpsets/set/mod011-machines/type/coffee_script.rb +0 -43
  946. data/tmpsets/set/mod011-machines/type/css.rb +0 -67
  947. data/tmpsets/set/mod011-machines/type/java_script.rb +0 -36
  948. data/tmpsets/set/mod011-machines/type/scss.rb +0 -21
  949. data/tmpsets/set/mod011-machines/type/skin.rb +0 -13
  950. data/tmpsets/set/mod012-settings/abstract/permission.rb +0 -119
  951. data/tmpsets/set/mod012-settings/right/add_help.rb +0 -18
  952. data/tmpsets/set/mod012-settings/right/comment.rb +0 -8
  953. data/tmpsets/set/mod012-settings/right/create.rb +0 -8
  954. data/tmpsets/set/mod012-settings/right/default.rb +0 -14
  955. data/tmpsets/set/mod012-settings/right/delete.rb +0 -8
  956. data/tmpsets/set/mod012-settings/right/help.rb +0 -10
  957. data/tmpsets/set/mod012-settings/right/read.rb +0 -10
  958. data/tmpsets/set/mod012-settings/right/script.rb +0 -16
  959. data/tmpsets/set/mod012-settings/right/structure.rb +0 -68
  960. data/tmpsets/set/mod012-settings/right/style.rb +0 -17
  961. data/tmpsets/set/mod012-settings/right/update.rb +0 -8
  962. data/tmpsets/set/mod012-settings/self/accountable.rb +0 -10
  963. data/tmpsets/set/mod012-settings/self/add_help.rb +0 -9
  964. data/tmpsets/set/mod012-settings/self/autoname.rb +0 -9
  965. data/tmpsets/set/mod012-settings/self/captcha.rb +0 -9
  966. data/tmpsets/set/mod012-settings/self/create.rb +0 -9
  967. data/tmpsets/set/mod012-settings/self/default.rb +0 -9
  968. data/tmpsets/set/mod012-settings/self/default_html_view.rb +0 -9
  969. data/tmpsets/set/mod012-settings/self/delete.rb +0 -9
  970. data/tmpsets/set/mod012-settings/self/follow_fields.rb +0 -9
  971. data/tmpsets/set/mod012-settings/self/help.rb +0 -9
  972. data/tmpsets/set/mod012-settings/self/input.rb +0 -11
  973. data/tmpsets/set/mod012-settings/self/layout.rb +0 -9
  974. data/tmpsets/set/mod012-settings/self/on_create.rb +0 -9
  975. data/tmpsets/set/mod012-settings/self/on_delete.rb +0 -9
  976. data/tmpsets/set/mod012-settings/self/on_update.rb +0 -9
  977. data/tmpsets/set/mod012-settings/self/options.rb +0 -11
  978. data/tmpsets/set/mod012-settings/self/options_label.rb +0 -11
  979. data/tmpsets/set/mod012-settings/self/read.rb +0 -9
  980. data/tmpsets/set/mod012-settings/self/recent_settings.rb +0 -10
  981. data/tmpsets/set/mod012-settings/self/script.rb +0 -9
  982. data/tmpsets/set/mod012-settings/self/structure.rb +0 -9
  983. data/tmpsets/set/mod012-settings/self/style.rb +0 -9
  984. data/tmpsets/set/mod012-settings/self/table_of_contents.rb +0 -9
  985. data/tmpsets/set/mod012-settings/self/thanks.rb +0 -9
  986. data/tmpsets/set/mod012-settings/self/update.rb +0 -9
  987. data/tmpsets/set/mod013-email/all/email_html.rb +0 -11
  988. data/tmpsets/set/mod013-email/all/email_text.rb +0 -12
  989. data/tmpsets/set/mod013-email/all/follow.rb +0 -253
  990. data/tmpsets/set/mod013-email/all/notify.rb +0 -271
  991. data/tmpsets/set/mod013-email/all/observer.rb +0 -33
  992. data/tmpsets/set/mod013-email/right/bcc.rb +0 -47
  993. data/tmpsets/set/mod013-email/right/cc.rb +0 -10
  994. data/tmpsets/set/mod013-email/right/follow.rb +0 -106
  995. data/tmpsets/set/mod013-email/right/follow_fields.rb +0 -10
  996. data/tmpsets/set/mod013-email/right/followers.rb +0 -41
  997. data/tmpsets/set/mod013-email/right/following.rb +0 -65
  998. data/tmpsets/set/mod013-email/right/from.rb +0 -10
  999. data/tmpsets/set/mod013-email/right/html_message.rb +0 -10
  1000. data/tmpsets/set/mod013-email/right/to.rb +0 -10
  1001. data/tmpsets/set/mod013-email/self/always.rb +0 -20
  1002. data/tmpsets/set/mod013-email/self/created.rb +0 -26
  1003. data/tmpsets/set/mod013-email/self/follow.rb +0 -9
  1004. data/tmpsets/set/mod013-email/self/follow_defaults.rb +0 -75
  1005. data/tmpsets/set/mod013-email/self/never.rb +0 -20
  1006. data/tmpsets/set/mod013-email/type/email_template.rb +0 -133
  1007. data/tmpsets/set/mod013-email/type_plus_right/user/follow.rb +0 -180
  1008. data/tmpsets/set/mod015-carrierwave/abstract/attachment/paths.rb +0 -57
  1009. data/tmpsets/set/mod015-carrierwave/type/file.rb +0 -158
  1010. data/tmpsets/set/mod015-carrierwave/type/image.rb +0 -97
  1011. data/tmpsets/set/mod016-standard/all/comment.rb +0 -67
  1012. data/tmpsets/set/mod016-standard/all/error.rb +0 -229
  1013. data/tmpsets/set/mod016-standard/all/links.rb +0 -165
  1014. data/tmpsets/set/mod016-standard/all/rich_html/content.rb +0 -261
  1015. data/tmpsets/set/mod016-standard/all/rich_html/editing.rb +0 -247
  1016. data/tmpsets/set/mod016-standard/all/rich_html/form.rb +0 -298
  1017. data/tmpsets/set/mod016-standard/all/rich_html/header.rb +0 -78
  1018. data/tmpsets/set/mod016-standard/all/rich_html/menu.rb +0 -154
  1019. data/tmpsets/set/mod016-standard/all/rich_html/modal.rb +0 -58
  1020. data/tmpsets/set/mod016-standard/all/rich_html/toolbar.rb +0 -312
  1021. data/tmpsets/set/mod016-standard/all/rich_html/wrapper.rb +0 -191
  1022. data/tmpsets/set/mod016-standard/right/discussion.rb +0 -10
  1023. data/tmpsets/set/mod016-standard/right/when_created.rb +0 -14
  1024. data/tmpsets/set/mod016-standard/right/when_last_edited.rb +0 -14
  1025. data/tmpsets/set/mod016-standard/rstar/rules.rb +0 -107
  1026. data/tmpsets/set/mod016-standard/rstar/rules_editor.rb +0 -371
  1027. data/tmpsets/set/mod016-standard/self/alerts.rb +0 -12
  1028. data/tmpsets/set/mod016-standard/self/codenames.rb +0 -7
  1029. data/tmpsets/set/mod016-standard/self/foot.rb +0 -15
  1030. data/tmpsets/set/mod016-standard/self/navbox.rb +0 -36
  1031. data/tmpsets/set/mod016-standard/self/now.rb +0 -14
  1032. data/tmpsets/set/mod016-standard/self/recent.rb +0 -34
  1033. data/tmpsets/set/mod016-standard/self/search.rb +0 -71
  1034. data/tmpsets/set/mod016-standard/type/cardtype.rb +0 -81
  1035. data/tmpsets/set/mod016-standard/type/date.rb +0 -15
  1036. data/tmpsets/set/mod016-standard/type/layout_type.rb +0 -17
  1037. data/tmpsets/set/mod016-standard/type/listed_by.rb +0 -85
  1038. data/tmpsets/set/mod016-standard/type/number.rb +0 -25
  1039. data/tmpsets/set/mod016-standard/type/phrase.rb +0 -10
  1040. data/tmpsets/set/mod016-standard/type/search_type.rb +0 -339
  1041. data/tmpsets/set/mod016-standard/type/session.rb +0 -42
  1042. data/tmpsets/set/mod016-standard/type/set.rb +0 -371
  1043. data/tmpsets/set/mod016-standard/type/toggle.rb +0 -19
  1044. data/tmpsets/set/mod016-standard/type/uri.rb +0 -18
  1045. data/tmpsets/set/mod017-account/right/account.rb +0 -196
  1046. data/tmpsets/set/mod017-account/right/email.rb +0 -61
  1047. data/tmpsets/set/mod017-account/right/salt.rb +0 -12
  1048. data/tmpsets/set/mod017-account/right/status.rb +0 -16
  1049. data/tmpsets/set/mod017-account/right/token.rb +0 -57
  1050. data/tmpsets/set/mod017-account/self/account_links.rb +0 -72
  1051. data/tmpsets/set/mod017-account/self/signin.rb +0 -165
  1052. data/tmpsets/set/mod017-account/type/signup.rb +0 -175
  1053. data/tmpsets/set/mod017-account/type/user.rb +0 -88
  1054. data/tmpsets/set/mod018-bootstrap/all/bootstrap/helper.rb +0 -236
  1055. data/tmpsets/set/mod018-bootstrap/all/bootstrap/table.rb +0 -68
  1056. data/tmpsets/set/mod018-bootstrap/all/bootstrap/tabs.rb +0 -88
  1057. data/tmpsets/set/mod018-bootstrap/all/bootstrap/wrapper.rb +0 -18
  1058. data/tmpsets/set/mod018-bootstrap/all/rich_bootstrap.rb +0 -13
  1059. data/tmpsets/set/mod018-bootstrap/self/bootstrap_cards.rb +0 -8
  1060. data/tmpsets/set/mod018-bootstrap/self/bootstrap_js.rb +0 -12
  1061. data/tmpsets/set/mod018-bootstrap/self/bootswatch_shared.rb +0 -47
  1062. data/tmpsets/set/mod018-bootstrap/self/script_mods.rb +0 -7
  1063. data/tmpsets/set/mod018-bootstrap/self/smartmenu_css.rb +0 -12
  1064. data/tmpsets/set/mod018-bootstrap/self/smartmenu_js.rb +0 -12
  1065. data/tmpsets/set_pattern/105-right.rb +0 -33
  1066. data/tmpsets/set_pattern/106-type_plus_right.rb +0 -39
  1067. data/tmpsets/set_pattern/107-self.rb +0 -32
@@ -1,28 +0,0 @@
1
- # class Card
2
- # class View
3
- # # method to render views with layouts
4
- # module Wrapper
5
- # def with_wrapper
6
- # if layout.present?
7
- # self.wrap ||= []
8
- # wrap.push layout.to_name.key
9
- # end
10
- #
11
- # format.rendered = yield
12
- # return format.rendered unless wrap.present?
13
- #
14
- # wrap.reverse_each do |wrapper|
15
- # format.rendered = render_wrapper wrapper
16
- # end
17
- # format.rendered
18
- # end
19
- #
20
- # private
21
- #
22
- # def render_wrapper wrapper
23
- # format.try("wrap_with_#{wrapper}") { format.rendered } ||
24
- # Card::Layout::CardLayout.new(wrapper, format).render
25
- # end
26
- # end
27
- # end
28
- # end
@@ -1,209 +0,0 @@
1
- $.extend decko,
2
- # returns absolute path (starting with a slash)
3
- # if rawPath is complete url, this returns the complete url
4
- # if rawPath is relative (no slash), this adds relative root
5
- path: (rawPath) ->
6
- if rawPath.match /^\/|:\/\//
7
- rawPath
8
- else
9
- decko.rootUrl + rawPath
10
-
11
- initializeEditors: (range, map) ->
12
- map = decko.editorInitFunctionMap unless map?
13
- $.each map, (selector, fn) ->
14
- $.each range.find(selector), ->
15
- fn.call $(this)
16
-
17
- pingName: (name, success)->
18
- $.getJSON decko.path(''), format: 'json', view: 'status', 'card[name]': name, success
19
-
20
- isTouchDevice: ->
21
- if 'ontouchstart' of window or window.DocumentTouch and
22
- document instanceof DocumentTouch
23
- return true
24
- else
25
- return detectMobileBrowser()
26
-
27
- # source for this method: detectmobilebrowsers.com
28
- detectMobileBrowser = (userAgent) ->
29
- userAgent = navigator.userAgent or navigator.vendor or window.opera
30
- /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(userAgent) or /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(userAgent.substr(0, 4))
31
-
32
- jQuery.fn.extend {
33
- notify: (message, status) ->
34
- slot = @slot(status)
35
- notice = slot.find '.card-notice'
36
- unless notice[0]
37
- notice = $('<div class="card-notice"></div>')
38
- form = slot.find('.card-form')
39
- if form[0]
40
- $(form[0]).append notice
41
- else
42
- slot.append notice
43
- notice.html message
44
- notice.show 'blind'
45
-
46
- report: (message) ->
47
- report = @slot().find '.card-report'
48
- return false unless report[0]
49
- report.hide()
50
- report.html message
51
- report.show 'drop', 750
52
- setTimeout (->report.hide 'drop', 750), 3000
53
-
54
- autosave: ->
55
- slot = @slot()
56
- return if @attr 'no-autosave'
57
- multi = @closest '.form-group'
58
- if multi[0]
59
- return unless id = multi.data 'cardId'
60
- reportee = ': ' + multi.data 'cardName'
61
- else
62
- id = slot.data 'cardId'
63
- reportee = ''
64
-
65
- # might be better to put this href base in the html
66
- submit_url = decko.path 'update/~' + id
67
- form_data = $('#edit_card_'+id).serializeArray().reduce( ((obj, item) ->
68
- obj[item.name] = item.value
69
- return obj
70
- ), { 'draft' : 'true', 'success[view]' : 'blank'});
71
- $.ajax submit_url, {
72
- data : form_data,
73
- type : 'POST'
74
- }
75
- ##{ 'card[content]' : @val() },
76
- }
77
-
78
- #~~~~~ ( EVENTS )
79
-
80
- setInterval (-> $('.card-form').setContentFieldsFromMap()), 20000
81
-
82
- $(window).ready ->
83
- $.ajaxSetup cache: false
84
-
85
- setTimeout (-> decko.initializeEditors $('body')), 10
86
- # dislike the timeout, but without this forms with multiple TinyMCE editors
87
- # were failing to load properly
88
-
89
- $('body').on 'submit', '.card-form', ->
90
- $(this).setContentFieldsFromMap()
91
- $(this).find('.d0-card-content').attr('no-autosave','true')
92
- true
93
-
94
- $('body').on 'click', '.submitter', ->
95
- $(this).closest('form').submit()
96
-
97
- $('body').on 'click', '.renamer-updater', ->
98
- $(this).closest('form').find('#card_update_referers').val 'true'
99
-
100
- $('body').on 'submit', '.edit_name-view .card-form, .edit_name_form-view .card-form', ->
101
- confirmer = $(this).find '.alert'
102
- if confirmer.is ':hidden'
103
- if $(this).find('#referers').val() > 0
104
- $(this).find('.renamer-updater').show()
105
-
106
- confirmer.show 'blind'
107
- false
108
-
109
- $('body').on 'click', '.follow-updater', ->
110
- $(this).closest('form').find('#card_update_all_users').val 'true'
111
-
112
- $('body').on 'submit', '.edit-view.SELF-Xfollow_default .card-form', ->
113
- confirmer = $(this).find '.confirm_update_all-view'
114
- if confirmer.is ':hidden'
115
- $(this).find('.follow-updater').show()
116
-
117
- confirmer.show 'blind'
118
- false
119
-
120
- $('body').on 'click', 'button.redirecter', ->
121
- window.location = $(this).attr('href')
122
-
123
- $('body').on 'change', '.live-type-field', ->
124
- $(this).data 'params', $(this).closest('form').serialize()
125
- $(this).data 'url', $(this).attr 'href'
126
-
127
- $('body').on 'change', '.edit-type-field', ->
128
- $(this).closest('form').submit()
129
-
130
- $('body').on 'change', '.autosave .d0-card-content', ->
131
- content_field = $(this)
132
- setTimeout ( -> content_field.autosave() ), 500
133
-
134
- $('body').on 'mouseenter', '[hover_content]', ->
135
- $(this).attr 'hover_restore', $(this).html()
136
- $(this).html $(this).attr( 'hover_content' )
137
- $('body').on 'mouseleave', '[hover_content]', ->
138
- $(this).html $(this).attr( 'hover_restore' )
139
-
140
- $('body').on 'keyup', '.name-editor input', ->
141
- box = $(this)
142
- name = box.val()
143
- decko.pingName name, (data)->
144
- return null if box.val() != name # avert race conditions
145
- status = data['status']
146
- if status
147
- ed = box.parent()
148
- leg = box.closest('fieldset').find('legend')
149
- msg = leg.find '.name-messages'
150
- unless msg[0]
151
- msg = $('<span class="name-messages"></span>')
152
- leg.append msg
153
- ed.removeClass 'real-name virtual-name known-name'
154
-
155
- # use id to avoid warning when renaming to name variant
156
- slot_id = box.slot().data 'cardId'
157
- if status != 'unknown' and !(slot_id && parseInt(slot_id) == data['id'])
158
- ed.addClass status + '-name known-name'
159
- link =
160
- # wish coffee would let me use a ? b : c syntax here
161
- qualifier = if status == 'virtual'
162
- 'in virtual'
163
- else
164
- 'already in'
165
- msg.html '"<a href="' + decko.path(data['url_key']) + '">' +
166
- name + '</a>" ' + qualifier + ' use'
167
- else
168
- msg.html ''
169
-
170
- $('body').on 'click', '.render-error-link', (event) ->
171
- msg = $(this).closest('.render-error').find '.render-error-message'
172
- msg.show()
173
- # msg.dialog()
174
- event.preventDefault()
175
-
176
-
177
- $('card-view-placeholder').each ->
178
- $this = $(this)
179
- $.get $this.data("url"), (data, status) ->
180
- $this.replaceWith data
181
-
182
- # important: this prevents jquery-mobile from taking over everything
183
- # $( document ).on "mobileinit", ->
184
- # $.extend $.mobile , {
185
- # #autoInitializePage: false
186
- # #ajaxEnabled: false
187
- # }
188
-
189
-
190
- snakeCase = (str)->
191
- str.replace /([a-z])([A-Z])/g, (match) -> match[0] + '_' +
192
- match[1].toLowerCase()
193
-
194
- warn = (stuff) -> console.log stuff if console?
195
-
196
- decko.slotReady (slot) ->
197
- slot.find('._disappear').delay(5000).animate(
198
- height: 0, 1000, -> $(this).hide())
199
-
200
- if slot.hasClass("_refresh-timer")
201
- setTimeout(
202
- -> $.get slot.data("refresh-url"), (data, status) ->
203
- slot.setSlotContent data
204
- #new_slot = slot.replaceWith data
205
- #new_slot.trigger('slotReady')
206
- 2000
207
- )
208
-
209
-
@@ -1,3 +0,0 @@
1
- decko.slotReady (slot) ->
2
- if decko.isTouchDevice()
3
- slot.find('._show-on-hover').removeClass('_show-on-hover')
@@ -1 +0,0 @@
1
- include_set Abstract::CodeFile
@@ -1,10 +0,0 @@
1
- include_set Abstract::CodeFile
2
-
3
- def source_files
4
- %w[decko_mod decko_editor decko_layout decko_navbox decko_upload
5
- decko_filter decko_slot decko_modal decko_overlay decko_recaptcha
6
- decko_slotter decko_bridge decko_nest_editor decko_nest_editor_rules
7
- decko_nest_editor_options decko_nest_editor_name decko_components decko].map do |n|
8
- "#{n}.js.coffee"
9
- end
10
- end
@@ -1,8 +0,0 @@
1
- .input-group.input-group-sm.mb-2.card-outline-primary.mr-2._filter-input.d-flex.flex-nowrap{"data-category" => key}
2
- .input-group-prepend
3
- %button.btn.btn-secondary.input-group-text.p-1._delete-filter-input{:type => "button"}
4
- %small.text-muted
5
- = fa_icon :times
6
- %span.input-group-text._selected-category
7
- = category[:label]
8
- = category[:input_field]
@@ -1,44 +0,0 @@
1
-
2
- .card.w-100.nodblclick
3
- .card-body
4
- ._filter-widget
5
- ._filter-input-field-prototypes.d-none
6
- - categories.each do |key, category|
7
- ._filter-input-field{class: key}
8
- - unless category[:active]
9
- = haml_partial :filter_input, key: key, category: category
10
-
11
- %form._filter-form{form_args, "accept-charset": "UTF-8",
12
- "data-remote": "true",
13
- method: "get"}
14
- - not_ids = params.dig :filter, :not_ids
15
- %input{ type: :hidden, name: "filter[not_ids]", class: "_not-ids", value: not_ids }
16
- .d-flex.flex-row
17
- - if sort_input_field
18
- .sort-in-filter-form
19
- %i.material-icons.text-muted.md-24.p-1.float-left sort
20
- .input-group.input-group-sm.flex-nowrap.sort-input-group.mb-2.card-outline-primary.mr-5
21
- .input-group-prepend
22
- %span.input-group-text sort
23
- = sort_input_field
24
-
25
- .filter-in-filter-form
26
- %i.material-icons.text-muted.md-24.p-1.float-left search
27
- ._filter-container.d-flex.flew-row.flex-wrap
28
- - categories.each do |key, category|
29
- - if category[:active]
30
- = haml_partial :filter_input, key: key, category: category
31
-
32
- .dropdown._add-filter-dropdown
33
- %button.btn.btn-sm.btn-secondary.dropdown-toggle{"aria-expanded": "false",
34
- "aria-haspopup": "true",
35
- "data-toggle": "dropdown",
36
- type: "button" }
37
- Add filter
38
- .dropdown-menu
39
- - categories.each do |key, category|
40
- %a.dropdown-item._filter-category-select{style: ("display: none;" if category[:active]),
41
- "data-category" => key,
42
- "data-label" => category[:label],
43
- :href => "#"}
44
- = category[:label]
@@ -1,15 +0,0 @@
1
- # -*- encoding : utf-8 -*-
2
- class Card; module Set; class Self; module Version; extend Card::Set
3
- # ~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/admin/set/self/version.rb ~~
4
- # -*- encoding : utf-8 -*-
5
- require_dependency "card/version"
6
-
7
- view :raw do |_args|
8
- Card::Version.release
9
- end
10
-
11
- view :core, :raw
12
-
13
-
14
- # ~~ below autogenerated; above pulled from /Users/ethan/dev/wagn/gem/card/mod/admin/set/self/version.rb ~~
15
- end;end;end;end;
@@ -1,79 +0,0 @@
1
- # -*- encoding : utf-8 -*-
2
- class Card; module Set; class Abstract; module CodeFile; extend Card::Set
3
- # ~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/core/set/abstract/code_file.rb ~~
4
- def self.included host_class
5
- host_class.mattr_accessor :file_content_mod_name
6
- host_class.file_content_mod_name = mod_name(caller)
7
- end
8
-
9
- # try to extract the mod name from the path of the set's tmp file
10
- # the caller that included the set file is set.rb
11
- def self.mod_name backtrace
12
- mod_dir = tmp_mod_dir backtrace
13
- raise Error, "not a valid set path: #{path}" unless mod_dir
14
- match = mod_dir.match(/^mod\d+-(?<mod_name>.+)$/)
15
- match[:mod_name]
16
- end
17
-
18
- def self.tmp_mod_dir backtrace
19
- path = backtrace.find { |line| line.include? "tmp/set/" }
20
- raise Error, "couldn't find set path in backtrace: #{backtrace}" unless path
21
- path_parts = path.split(File::SEPARATOR)
22
- path_parts.fetch(path_parts.index("set") + 1) do
23
- raise Error, "not a valid set path: #{path}"
24
- end
25
- end
26
-
27
- # @return [Array<String>, String] the name of file(s) to be loaded
28
- def source_files
29
- case type_id
30
- when CoffeeScriptID then "#{codename}.js.coffee"
31
- when JavaScriptID then "#{codename}.js"
32
- when CssID then "#{codename}.css"
33
- when ScssID then "#{codename}.scss"
34
- end
35
- end
36
-
37
- def source_dir
38
- case type_id
39
- when CoffeeScriptID, JavaScriptID then "javascript"
40
- when CssID, ScssID then "stylesheets"
41
- end
42
- end
43
-
44
- def find_file filename
45
- Card.paths["mod"].to_a.each do |mod_path|
46
- file_path =
47
- File.join(mod_path, file_content_mod_name, "lib", source_dir, filename)
48
- return file_path if File.exist? file_path
49
- end
50
- nil
51
- end
52
-
53
- def existing_source_paths
54
- Array.wrap(source_files).map do |filename|
55
- find_file(filename)
56
- end.compact
57
- end
58
-
59
- view :raw do |_args|
60
- Array.wrap(card.source_files).map do |filename|
61
- if (source_path = card.find_file(filename))
62
- Rails.logger.info "reading file: #{source_path}"
63
- File.read source_path
64
- else
65
- Rails.logger.info "couldn't locate file: #{filename}"
66
- nil
67
- end
68
- end.compact.join "\n"
69
- end
70
-
71
- format :html do
72
- view :editor do |_args|
73
- "Content is stored in file and can't be edited."
74
- end
75
- end
76
-
77
-
78
- # ~~ below autogenerated; above pulled from /Users/ethan/dev/wagn/gem/card/mod/core/set/abstract/code_file.rb ~~
79
- end;end;end;end;
@@ -1,313 +0,0 @@
1
- # -*- encoding : utf-8 -*-
2
- class Card; module Set; class All; module Collection; extend Card::Set
3
- # ~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/core/set/all/collection.rb ~~
4
-
5
- module ClassMethods
6
- def search spec, comment=nil
7
- results = ::Card::Query.run(spec, comment)
8
- if block_given? && results.is_a?(Array)
9
- results.each { |result| yield result }
10
- end
11
- results
12
- end
13
-
14
- def count_by_wql spec
15
- spec = spec.clone
16
- spec.delete(:offset)
17
- search spec.merge(return: "count")
18
- end
19
-
20
- def find_each options={}
21
- # this is a copy from rails (3.2.16) and is needed because this
22
- # is performed by a relation (ActiveRecord::Relation)
23
- find_in_batches(options) do |records|
24
- records.each { |record| yield record }
25
- end
26
- end
27
-
28
- def find_in_batches options={}
29
- if block_given?
30
- super(options) do |records|
31
- yield(records)
32
- Card::Cache.reset_soft
33
- end
34
- else
35
- super(options)
36
- end
37
- end
38
- end
39
-
40
- def item_names _args={}
41
- format._render_raw.split(/[,\n]/)
42
- end
43
-
44
- def item_cards _args={} # FIXME: this is inconsistent with item_names
45
- [self]
46
- end
47
-
48
- def collection?
49
- item_cards != [self]
50
- end
51
-
52
- def item_type
53
- nil
54
- end
55
-
56
- def item_keys args={}
57
- item_names(args).map do |item|
58
- item.to_name.key
59
- end
60
- end
61
-
62
- def include_item? item
63
- key = item.is_a?(Card) ? item.cardname.key : item.to_name.key
64
- item_names.map { |name| name.to_name.key }.member? key
65
- end
66
-
67
- def add_item item
68
- return if include_item? item
69
- self.content = "#{content}\n#{name}"
70
- end
71
-
72
- def drop_item item
73
- return unless include_item? item
74
- new_names = item_names.reject { |i| i == item }
75
- self.content = new_names.empty? ? "" : new_names.join("\n")
76
- end
77
-
78
- def insert_item index, name
79
- new_names = item_names
80
- new_names.delete name
81
- new_names.insert index, name
82
- self.content = new_names.join "\n"
83
- end
84
-
85
- def extended_item_cards context=nil
86
- context = (context ? context.cardname : cardname)
87
- args = { limit: "" }
88
- items = item_cards(args.merge(context: context))
89
- extended_list = []
90
- already_extended = ::Set.new # avoid loops
91
-
92
- until items.empty?
93
- item = items.shift
94
- next if already_extended.include? item
95
- already_extended << item
96
- if item.collection?
97
- # keep items in order
98
- items.unshift(*item.item_cards)
99
- else # no further level of items
100
- extended_list << item
101
- end
102
- end
103
- extended_list
104
- end
105
-
106
- def extended_item_contents context=nil
107
- extended_item_cards(context).map(&:item_names).flatten
108
- end
109
-
110
- def extended_list context=nil
111
- context = (context ? context.cardname : cardname)
112
- args = { limit: "" }
113
- item_cards(args.merge(context: context)).map do |x|
114
- x.item_cards(args)
115
- end.flatten.map do |x|
116
- x.item_cards(args)
117
- end.flatten.map do |y|
118
- y.item_names(args)
119
- end.flatten
120
- # this could go on and on. more elegant to recurse until you don't have
121
- # a collection
122
- end
123
-
124
- def contextual_content context_card, format_args={}, view_args={}
125
- context_card.format(format_args).process_content(
126
- format(format_args)._render_raw(view_args), view_args
127
- )
128
- end
129
-
130
- format do
131
- def item_links _args={}
132
- raw(render_core).split(/[,\n]/)
133
- end
134
-
135
- def item_view args
136
- args[:item] ||
137
- (@nest_opts && @nest_opts[:view]) ||
138
- default_item_view
139
- end
140
-
141
- def item_args args
142
- i_args = { view: item_view(args) }
143
- if (type = card.item_type)
144
- i_args[:type] = type
145
- end
146
- i_args
147
- end
148
-
149
- def search_params
150
- @search_params ||= begin
151
- p = default_search_params.clone
152
-
153
- if focal?
154
- p[:offset] = params[:offset] if params[:offset]
155
- p[:limit] = params[:limit] if params[:limit]
156
- p.merge! params[:wql] if params[:wql]
157
- end
158
- p
159
- end
160
- end
161
-
162
- def default_search_params # wahh?
163
- set_default_search_params
164
- end
165
-
166
- def set_default_search_params overrides={}
167
- @default_search_params ||= begin
168
- p = { default_limit: 100 }.merge overrides
169
- set_search_params_variables! p
170
- p
171
- end
172
- end
173
-
174
- def set_search_params_variables! hash
175
- hash[:vars] = params[:vars] || {}
176
- params.each do |key, val|
177
- case key.to_s
178
- when "_wql" then hash.merge! val
179
- when /^\_(\w+)$/ then hash[:vars][Regexp.last_match(1).to_sym] = val
180
- end
181
- end
182
- end
183
-
184
- def each_reference_with_args args={}
185
- content_object = Card::Content.new _render_raw(args), card
186
- content_object.find_chunks(Card::Content::Chunk::Reference).each do |chunk|
187
- yield chunk.referee_name.to_s, nest_args(args, chunk)
188
- end
189
- end
190
-
191
- def each_nested_chunk args={}
192
- content_object = Card::Content.new(_render_raw(args), card)
193
- content_object.find_chunks(Card::Content::Chunk::Include).each do |chunk|
194
- yield(chunk) if chunk.referee_name # filter commented nests
195
- end
196
- end
197
-
198
- def nested_fields args={}
199
- result = []
200
- each_nested_field(args) do |chunk|
201
- result << chunk
202
- end
203
- result
204
- end
205
-
206
- def unique_chunks chunk, processed_set, &_block
207
- return if processed_set.include? chunk.referee_name.key
208
- processed_set << chunk.referee_name.key
209
- yield(chunk)
210
- end
211
-
212
- def each_nested_field args, &block
213
- processed_chunk_keys = ::Set.new([card.key])
214
-
215
- each_nested_chunk(args) do |chunk|
216
- # TODO: handle structures that are non-virtual
217
- next unless chunk.referee_name.to_name.field_of? card.name
218
- if chunk.referee_card &&
219
- chunk.referee_card.virtual? &&
220
- !processed_chunk_keys.include?(chunk.referee_name.key)
221
-
222
- processed_chunk_keys << chunk.referee_name.key
223
- subformat(chunk.referee_card).each_nested_field(args) do |sub_chunk|
224
- unique_chunks sub_chunk, processed_chunk_keys, &block
225
- end
226
- else
227
- unique_chunks chunk, processed_chunk_keys, &block
228
- end
229
- end
230
- end
231
-
232
- def map_references_with_args args={}, &_block
233
- result = []
234
- each_reference_with_args args do |name, n_args|
235
- result << yield(name, n_args)
236
- end
237
- result
238
- end
239
-
240
- # process args for links and nests
241
- def nest_args args, chunk=nil
242
- r_args = item_args(args)
243
- r_args.merge! @nest_opts.clone if @nest_opts
244
-
245
- case chunk
246
- when Card::Content::Chunk::Include
247
- r_args.merge!(chunk.options)
248
- when Card::Content::Chunk::Link
249
- r_args.reverse_merge!(view: :link)
250
- r_args.reverse_merge!(title: chunk.link_text) if chunk.link_text
251
- end
252
- r_args
253
- end
254
- end
255
-
256
- format :html do
257
- view :count do |args|
258
- card.item_names(args).size
259
- end
260
-
261
- view :tabs do |args|
262
- active_name = nil
263
- active_content = nil
264
- tabs = {}
265
- each_reference_with_args(item: :content) do |name, nest_args|
266
- tab_name = nest_args[:title] || name
267
- tabs[tab_name] = nest_path(name, nest_args).html_safe
268
-
269
- active_name ||= tab_name
270
- # warning: nest changes nest_args
271
- active_content ||= nest(Card.fetch(name, new: {}), nest_args)
272
- end
273
- lazy_loading_tabs tabs, active_name, active_content,
274
- type: args[:tab_type]
275
- end
276
- def default_tabs_args args
277
- args[:tab_type] ||= "tabs"
278
- end
279
-
280
- # create a path for a nest with respect ot the nest options
281
- def nest_path name, nest_args
282
- path_args = {}
283
- path_args[:view] = nest_args[:view]
284
- path_args[:slot] = nest_args.clone
285
- path_args[:slot].delete(:view)
286
- page_path(name, path_args)
287
- end
288
-
289
- view :pills, view: :tabs
290
- def default_pills_args args
291
- args[:tab_type] ||= "pills"
292
- end
293
-
294
- view :tabs_static do |args|
295
- tabs = {}
296
- card.item_cards.each do |item|
297
- tabs[item.name] = nest item, item_args(args)
298
- end
299
- static_tabs tabs, args[:tab_type]
300
- end
301
- def default_tabs_static_args args
302
- args[:tab_type] ||= "tabs"
303
- end
304
-
305
- view :pills_static, view: :tabs_static
306
- def default_tabs_static_args args
307
- args[:tab_type] ||= "pills"
308
- end
309
- end
310
-
311
-
312
- # ~~ below autogenerated; above pulled from /Users/ethan/dev/wagn/gem/card/mod/core/set/all/collection.rb ~~
313
- end;end;end;end;