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.
- checksums.yaml +4 -4
- data/.yardopts +10 -8
- data/LICENSE +0 -1
- data/VERSION +1 -1
- data/config/locales/de.yml +16 -12
- data/config/locales/en.yml +15 -10
- data/config/locales/es.yml +16 -13
- data/db/migrate_core_cards/20150116220620_add_markdown_type.rb +7 -0
- data/db/migrate_core_cards/20190417142612_reorganize_scripts_2.rb +19 -0
- data/db/migrate_core_cards/20190424100531_update_credit_image.rb +75 -0
- data/db/migrate_core_cards/20190424101004_add_read_anyone_rules.rb +13 -0
- data/db/migrate_core_cards/20190502130029_add_shark_and_help_desk_role.rb +105 -0
- data/db/migrate_core_cards/20190503122739_update_pristine_data.rb +18 -0
- data/db/migrate_core_cards/20190528131330_enabled_roles.rb +12 -0
- data/db/migrate_core_cards/20190605133556_tweak_config_cards.rb +10 -0
- data/db/migrate_core_cards/20190618110446_add_dropdown_divider.rb +8 -0
- data/db/migrate_core_cards/20190621143156_add_role_assign_permissions.rb +9 -0
- data/db/migrate_core_cards/20190625153616_pointer_overhaul.rb +19 -0
- data/db/migrate_core_cards/20190710090207_homepage_tweaks.rb +12 -0
- data/db/migrate_core_cards/data/cards.yml +127 -2
- data/db/migrate_core_cards/data/cards/Xaccount_setting-Xright-Xstructure +5 -0
- data/db/migrate_core_cards/data/cards/Xall-Xlayout +1 -0
- data/db/migrate_core_cards/data/cards/Xcredit +2 -0
- data/db/migrate_core_cards/data/cards/Xfooter +3 -0
- data/db/migrate_core_cards/data/cards/Xgetting_started +31 -0
- data/db/migrate_core_cards/data/cards/Xgetting_started-link +6 -0
- data/db/migrate_core_cards/data/cards/Xgetting_started-shark +66 -0
- data/db/migrate_core_cards/data/cards/Xheader +4 -2
- data/db/migrate_core_cards/data/cards/Xhome +1 -0
- data/db/migrate_core_cards/data/cards/Xlogo +1 -0
- data/db/migrate_core_cards/data/cards/Xmain_menu +2 -2
- data/db/migrate_core_cards/data/cards/Xrecaptcha_setting-Xself-Xstructure +1 -0
- data/db/migrate_core_cards/data/cards/Xsidebar +7 -0
- data/db/migrate_core_cards/data/cards/Xtitle +1 -0
- data/db/migrate_core_cards/data/cards/administrator-dashboard +18 -0
- data/db/migrate_core_cards/data/cards/administrator-description +1 -0
- data/db/migrate_core_cards/data/cards/anyone_signed_in-dashboard +2 -0
- data/db/migrate_core_cards/data/cards/cardtype-Xtype-Xstructure +3 -0
- data/db/migrate_core_cards/data/cards/default_layout +6 -0
- data/db/migrate_core_cards/data/cards/eagle-description +1 -0
- data/db/migrate_core_cards/data/cards/full_width_layout +5 -0
- data/db/migrate_core_cards/data/cards/help_desk-dashboard +7 -0
- data/db/migrate_core_cards/data/cards/help_desk-description +1 -0
- data/db/migrate_core_cards/data/cards/home +2 -0
- data/db/migrate_core_cards/data/cards/home-Xself-Xlayout +1 -0
- data/db/migrate_core_cards/data/cards/home-original +22 -0
- data/db/migrate_core_cards/data/cards/home_layout +6 -0
- data/db/migrate_core_cards/data/cards/left_sidebar_layout +6 -0
- data/db/migrate_core_cards/data/cards/menu +1 -0
- data/db/migrate_core_cards/data/cards/right_thin_sidebar_layout +8 -0
- data/db/migrate_core_cards/data/cards/role-Xtype-Xstructure +2 -0
- data/db/migrate_core_cards/data/cards/shark-dashboard +19 -0
- data/db/migrate_core_cards/data/cards/shark-description +1 -0
- data/db/migrate_core_cards/data/cards/shark_menu +2 -0
- data/db/migrate_core_cards/data/decko_logo.svg +1 -1
- data/db/seed/new/card_actions.yml +2487 -2247
- data/db/seed/new/card_acts.yml +2 -2
- data/db/seed/new/card_references.yml +4030 -3778
- data/db/seed/new/cards.yml +5576 -4902
- data/db/seed/new/schema_migrations_core_cards.yml +128 -86
- data/db/seed/test/fixtures/card_actions.yml +3561 -3289
- data/db/seed/test/fixtures/card_acts.yml +514 -490
- data/db/seed/test/fixtures/card_changes.yml +67 -67
- data/db/seed/test/fixtures/card_references.yml +4595 -4329
- data/db/seed/test/fixtures/cards.yml +5710 -4976
- data/db/seed/test/fixtures/schema_migrations_core_cards.yml +128 -86
- data/db/seed/test/seed.rb +10 -5
- data/db/version_core_cards.txt +1 -1
- data/lib/card.rb +2 -2
- data/lib/card/act_manager/stage_director/phases.rb +0 -3
- data/lib/card/auth/current.rb +14 -3
- data/lib/card/auth/permissions.rb +19 -8
- data/lib/card/cache.rb +4 -3
- data/lib/card/codename.rb +1 -1
- data/lib/card/content.rb +24 -3
- data/lib/card/content/chunk.rb +17 -2
- data/lib/card/env.rb +22 -10
- data/lib/card/env/success.rb +5 -1
- data/lib/card/error.rb +5 -0
- data/lib/card/format.rb +10 -61
- data/lib/card/format/content.rb +20 -13
- data/lib/card/format/context_names.rb +13 -2
- data/lib/card/format/error.rb +34 -0
- data/lib/card/format/nest.rb +14 -6
- data/lib/card/format/nesting.rb +6 -4
- data/lib/card/format/nesting/main.rb +1 -21
- data/lib/card/format/nesting/mode.rb +8 -8
- data/lib/card/format/nesting/subformat.rb +1 -1
- data/lib/card/format/registration.rb +0 -32
- data/lib/card/format/render.rb +19 -20
- data/lib/card/migration.rb +7 -0
- data/lib/card/mod.rb +3 -2
- data/lib/card/mod/load_strategy.rb +4 -0
- data/lib/card/mod/load_strategy/eval.rb +1 -1
- data/lib/card/mod/load_strategy/pattern_tmp_files.rb +5 -5
- data/lib/card/mod/load_strategy/set_tmp_files.rb +1 -0
- data/lib/card/mod/load_strategy/tmp_files.rb +6 -2
- data/lib/card/mod/loader.rb +3 -2
- data/lib/card/mod/loader/set_loader.rb +83 -16
- data/lib/card/mod/loader/set_pattern_loader.rb +9 -12
- data/lib/card/mod/module_template.rb +42 -22
- data/lib/card/model/save_helper.rb +5 -5
- data/lib/card/query.rb +11 -11
- data/lib/card/query/card_query/sorting.rb +2 -2
- data/lib/card/set/event.rb +17 -3
- data/lib/card/set/event/delayed_event.rb +1 -1
- data/lib/card/set/event/options.rb +2 -2
- data/lib/card/set/format.rb +69 -23
- data/lib/card/set/format/abstract_format.rb +95 -98
- data/lib/card/set/format/abstract_format/haml_views.rb +44 -0
- data/lib/card/set/format/abstract_format/view_definition.rb +67 -0
- data/lib/card/set/format/abstract_format/view_opts.rb +68 -0
- data/lib/card/set/format/abstract_format/wrapper.rb +91 -0
- data/lib/card/set/format/{haml_views.rb → haml_paths.rb} +33 -60
- data/lib/card/set/i18n_scope.rb +62 -36
- data/lib/card/view.rb +49 -20
- data/lib/card/view/cache.rb +176 -8
- data/lib/card/view/cache/cache_action.rb +124 -0
- data/lib/card/view/cache/stub.rb +55 -0
- data/lib/card/view/options.rb +19 -3
- data/lib/card/view/options/key_lists.rb +4 -0
- data/lib/card/view/options/visibility.rb +99 -0
- data/lib/card/view/options/voo_api.rb +13 -10
- data/lib/card/view/permission.rb +54 -0
- data/lib/cardio.rb +3 -3
- data/mod/Modfile +2 -0
- data/mod/account/README.md +5 -0
- data/mod/account/set/all/account.rb +33 -12
- data/mod/account/set/right/roles.rb +27 -0
- data/mod/account/set/self/signin.rb +5 -2
- data/mod/account/set/type/role.rb +17 -0
- data/mod/account/set/type/user.rb +4 -3
- data/mod/account/spec/set/all/account_spec.rb +4 -7
- data/mod/account/spec/set/right/roles_spec.rb +24 -0
- data/mod/ace_editor/db/migrate_core_cards/20160805112548_delete_ace_help_card.rb +8 -0
- data/mod/ace_editor/lib/javascript/script_ace_config.js.coffee +0 -4
- data/mod/ace_editor/set/self/ace.rb +7 -0
- data/mod/admin/set/self/admin_info.rb +13 -46
- data/mod/admin/set/self/recaptcha_secret_key.rb +1 -1
- data/mod/admin/set/self/recaptcha_settings.rb +44 -0
- data/mod/admin/set/self/recaptcha_site_key.rb +1 -1
- data/mod/admin/set/self/version.rb +4 -0
- data/mod/admin/spec/set/self/admin_info_spec.rb +0 -1
- data/mod/basic_formats/format/json_format.rb +3 -3
- data/mod/basic_formats/set/all/base.rb +4 -7
- data/mod/basic_formats/set/all/head.rb +12 -12
- data/mod/basic_formats/set/all/json.rb +40 -23
- data/mod/basic_formats/set/all/rss.rb +4 -4
- data/mod/basic_formats/spec/set/all/json_spec.rb +1 -1
- data/mod/bootstrap/lib/bootstrap/component/layout.rb +6 -2
- data/mod/bootstrap/lib/javascript/script_load_select2.js.coffee +8 -3
- data/mod/bootstrap/lib/stylesheets/style_bootstrap_cards.scss +96 -13
- data/mod/bootstrap/lib/stylesheets/style_select2_bootstrap.scss +1 -1
- data/mod/bootstrap/set/abstract/bootswatch_theme.rb +1 -2
- data/mod/bootstrap/set/abstract/bootswatch_theme/html_views.rb +1 -1
- data/mod/bootstrap/set/all/bootstrap/dropdown.rb +87 -0
- data/mod/bootstrap/set/all/bootstrap/helper.rb +0 -161
- data/mod/bootstrap/set/all/bootstrap/icon.rb +109 -0
- data/mod/bootstrap/set/type/customized_bootswatch_skin/html_views.rb +2 -4
- data/mod/bootstrap/spec/set/all/bootstrap/layout_spec.rb +2 -2
- data/mod/bootstrap/vendor/bootswatch/Gruntfile.js +4 -0
- data/mod/bootstrap/vendor/bootswatch/dist/darkly/_bootswatch.scss +6 -3
- data/mod/bootstrap/vendor/bootswatch/dist/darkly/_variables.scss +6 -10
- data/mod/bootstrap/vendor/bootswatch/dist/darkly/bootstrap.css +129 -129
- data/mod/bootstrap/vendor/bootswatch/dist/darkly/bootstrap.min.css +1 -1
- data/mod/bootstrap/vendor/bootswatch/dist/litera/_bootswatch.scss +13 -12
- data/mod/bootstrap/vendor/bootswatch/dist/litera/bootstrap.css +4 -4
- data/mod/bootstrap/vendor/bootswatch/dist/litera/bootstrap.min.css +1 -1
- data/mod/bootstrap/vendor/bootswatch/dist/lux/_bootswatch.scss +13 -0
- data/mod/bootstrap/vendor/bootswatch/dist/lux/bootstrap.css +7 -0
- data/mod/bootstrap/vendor/bootswatch/dist/lux/bootstrap.min.css +1 -1
- data/mod/bootstrap/vendor/bootswatch/dist/materia/_bootswatch.scss +1 -1
- data/mod/bootstrap/vendor/bootswatch/dist/materia/bootstrap.css +4 -2
- data/mod/bootstrap/vendor/bootswatch/dist/materia/bootstrap.min.css +1 -1
- data/mod/bootstrap/vendor/bootswatch/dist/sketchy/_bootswatch.scss +45 -4
- data/mod/bootstrap/vendor/bootswatch/dist/sketchy/_variables.scss +3 -3
- data/mod/bootstrap/vendor/bootswatch/dist/sketchy/bootstrap.css +136 -100
- data/mod/bootstrap/vendor/bootswatch/dist/sketchy/bootstrap.min.css +1 -1
- data/mod/bootstrap/vendor/bootswatch/docs/2/README.md +3 -3
- data/mod/bootstrap/vendor/bootswatch/docs/2/amelia/index.html +2 -2
- data/mod/bootstrap/vendor/bootswatch/docs/2/cerulean/index.html +2 -2
- data/mod/bootstrap/vendor/bootswatch/docs/2/cosmo/index.html +2 -2
- data/mod/bootstrap/vendor/bootswatch/docs/2/cyborg/index.html +2 -2
- data/mod/bootstrap/vendor/bootswatch/docs/2/default/index.html +2 -2
- data/mod/bootstrap/vendor/bootswatch/docs/2/flatly/index.html +2 -2
- data/mod/bootstrap/vendor/bootswatch/docs/2/index.html +5 -5
- data/mod/bootstrap/vendor/bootswatch/docs/2/journal/index.html +2 -2
- data/mod/bootstrap/vendor/bootswatch/docs/2/readable/index.html +2 -2
- data/mod/bootstrap/vendor/bootswatch/docs/2/simplex/index.html +2 -2
- data/mod/bootstrap/vendor/bootswatch/docs/2/slate/index.html +2 -2
- data/mod/bootstrap/vendor/bootswatch/docs/2/spacelab/index.html +2 -2
- data/mod/bootstrap/vendor/bootswatch/docs/2/spruce/index.html +2 -2
- data/mod/bootstrap/vendor/bootswatch/docs/2/superhero/index.html +2 -2
- data/mod/bootstrap/vendor/bootswatch/docs/2/united/index.html +2 -2
- data/mod/bootstrap/vendor/bootswatch/docs/3/README.md +3 -3
- data/mod/bootstrap/vendor/bootswatch/docs/3/cerulean/index.html +2 -2
- data/mod/bootstrap/vendor/bootswatch/docs/3/cosmo/index.html +2 -2
- data/mod/bootstrap/vendor/bootswatch/docs/3/custom/index.html +2 -2
- data/mod/bootstrap/vendor/bootswatch/docs/3/cyborg/index.html +2 -2
- data/mod/bootstrap/vendor/bootswatch/docs/3/darkly/index.html +2 -2
- data/mod/bootstrap/vendor/bootswatch/docs/3/default/index.html +2 -2
- data/mod/bootstrap/vendor/bootswatch/docs/3/flatly/index.html +2 -2
- data/mod/bootstrap/vendor/bootswatch/docs/3/help/index.html +3 -3
- data/mod/bootstrap/vendor/bootswatch/docs/3/index.html +2 -2
- data/mod/bootstrap/vendor/bootswatch/docs/3/journal/index.html +2 -2
- data/mod/bootstrap/vendor/bootswatch/docs/3/lumen/index.html +2 -2
- data/mod/bootstrap/vendor/bootswatch/docs/3/paper/index.html +2 -2
- data/mod/bootstrap/vendor/bootswatch/docs/3/readable/index.html +2 -2
- data/mod/bootstrap/vendor/bootswatch/docs/3/sandstone/index.html +2 -2
- data/mod/bootstrap/vendor/bootswatch/docs/3/simplex/index.html +2 -2
- data/mod/bootstrap/vendor/bootswatch/docs/3/slate/index.html +2 -2
- data/mod/bootstrap/vendor/bootswatch/docs/3/spacelab/index.html +2 -2
- data/mod/bootstrap/vendor/bootswatch/docs/3/superhero/index.html +2 -2
- data/mod/bootstrap/vendor/bootswatch/docs/3/tests/components.html +8 -8
- data/mod/bootstrap/vendor/bootswatch/docs/3/united/index.html +2 -2
- data/mod/bootstrap/vendor/bootswatch/docs/3/yeti/index.html +2 -2
- data/mod/bootstrap/vendor/bootswatch/docs/4/darkly/_bootswatch.scss +6 -3
- data/mod/bootstrap/vendor/bootswatch/docs/4/darkly/_variables.scss +6 -10
- data/mod/bootstrap/vendor/bootswatch/docs/4/darkly/bootstrap.css +129 -129
- data/mod/bootstrap/vendor/bootswatch/docs/4/darkly/bootstrap.min.css +1 -1
- data/mod/bootstrap/vendor/bootswatch/docs/4/litera/_bootswatch.scss +13 -12
- data/mod/bootstrap/vendor/bootswatch/docs/4/litera/bootstrap.css +4 -4
- data/mod/bootstrap/vendor/bootswatch/docs/4/litera/bootstrap.min.css +1 -1
- data/mod/bootstrap/vendor/bootswatch/docs/4/lux/_bootswatch.scss +13 -0
- data/mod/bootstrap/vendor/bootswatch/docs/4/lux/bootstrap.css +7 -0
- data/mod/bootstrap/vendor/bootswatch/docs/4/lux/bootstrap.min.css +1 -1
- data/mod/bootstrap/vendor/bootswatch/docs/4/materia/_bootswatch.scss +1 -1
- data/mod/bootstrap/vendor/bootswatch/docs/4/materia/bootstrap.css +4 -2
- data/mod/bootstrap/vendor/bootswatch/docs/4/materia/bootstrap.min.css +1 -1
- data/mod/bootstrap/vendor/bootswatch/docs/4/sketchy/_bootswatch.scss +45 -4
- data/mod/bootstrap/vendor/bootswatch/docs/4/sketchy/_variables.scss +3 -3
- data/mod/bootstrap/vendor/bootswatch/docs/4/sketchy/bootstrap.css +136 -100
- data/mod/bootstrap/vendor/bootswatch/docs/4/sketchy/bootstrap.min.css +1 -1
- data/mod/bootstrap/vendor/bootswatch/docs/_assets/css/custom.min.css +1 -1
- data/mod/bootstrap/vendor/bootswatch/docs/_assets/js/custom.js +10 -11
- data/mod/bootstrap/vendor/bootswatch/docs/_assets/scss/custom.scss +10 -1
- data/mod/bootstrap/vendor/bootswatch/docs/_vendor/jquery/dist/core.js +22 -99
- data/mod/bootstrap/vendor/bootswatch/docs/_vendor/jquery/dist/jquery.js +842 -497
- data/mod/bootstrap/vendor/bootswatch/docs/_vendor/jquery/dist/jquery.min.js +2 -4
- data/mod/bootstrap/vendor/bootswatch/docs/_vendor/jquery/dist/jquery.min.map +1 -1
- data/mod/bootstrap/vendor/bootswatch/docs/_vendor/jquery/dist/jquery.slim.js +791 -456
- data/mod/bootstrap/vendor/bootswatch/docs/_vendor/jquery/dist/jquery.slim.min.js +2 -4
- data/mod/bootstrap/vendor/bootswatch/docs/_vendor/jquery/dist/jquery.slim.min.map +1 -1
- data/mod/bootstrap/vendor/bootswatch/docs/cerulean/index.html +6 -6
- data/mod/bootstrap/vendor/bootswatch/docs/cosmo/index.html +6 -6
- data/mod/bootstrap/vendor/bootswatch/docs/cyborg/index.html +6 -6
- data/mod/bootstrap/vendor/bootswatch/docs/darkly/index.html +6 -6
- data/mod/bootstrap/vendor/bootswatch/docs/default/index.html +6 -6
- data/mod/bootstrap/vendor/bootswatch/docs/flatly/index.html +6 -6
- data/mod/bootstrap/vendor/bootswatch/docs/help/index.html +6 -6
- data/mod/bootstrap/vendor/bootswatch/docs/index.html +11 -11
- data/mod/bootstrap/vendor/bootswatch/docs/journal/index.html +6 -6
- data/mod/bootstrap/vendor/bootswatch/docs/litera/index.html +6 -6
- data/mod/bootstrap/vendor/bootswatch/docs/lumen/index.html +6 -6
- data/mod/bootstrap/vendor/bootswatch/docs/lux/index.html +6 -6
- data/mod/bootstrap/vendor/bootswatch/docs/materia/index.html +6 -6
- data/mod/bootstrap/vendor/bootswatch/docs/minty/index.html +6 -6
- data/mod/bootstrap/vendor/bootswatch/docs/pulse/index.html +6 -6
- data/mod/bootstrap/vendor/bootswatch/docs/sandstone/index.html +6 -6
- data/mod/bootstrap/vendor/bootswatch/docs/simplex/index.html +6 -6
- data/mod/bootstrap/vendor/bootswatch/docs/sketchy/index.html +6 -6
- data/mod/bootstrap/vendor/bootswatch/docs/slate/index.html +6 -6
- data/mod/bootstrap/vendor/bootswatch/docs/solar/index.html +6 -6
- data/mod/bootstrap/vendor/bootswatch/docs/spacelab/index.html +6 -6
- data/mod/bootstrap/vendor/bootswatch/docs/superhero/index.html +6 -6
- data/mod/bootstrap/vendor/bootswatch/docs/united/index.html +6 -6
- data/mod/bootstrap/vendor/bootswatch/docs/yeti/index.html +6 -6
- data/mod/bootstrap/vendor/bootswatch/package-lock.json +5218 -0
- data/mod/bootstrap/vendor/bootswatch/package.json +5 -5
- data/mod/carrierwave/set/abstract/attachment/paths.rb +1 -1
- data/mod/carrierwave/set/type/file.rb +4 -3
- data/mod/carrierwave/set/type/image.rb +0 -70
- data/mod/carrierwave/set/type/image/html_views.rb +104 -0
- data/mod/core/chunk/link.rb +9 -5
- data/mod/core/chunk/literal.rb +2 -2
- data/mod/core/chunk/nest.rb +8 -2
- data/mod/core/chunk/query_reference.rb +1 -1
- data/mod/core/chunk/uri.rb +3 -3
- data/mod/core/chunk/view_stub.rb +3 -2
- data/mod/core/format/html_format.rb +1 -1
- data/mod/core/set/abstract/haml_file.rb +1 -1
- data/mod/core/set/all/content.rb +1 -1
- data/mod/core/set/all/event_conditions.rb +7 -6
- data/mod/core/set/all/fetch.rb +6 -6
- data/mod/core/set/all/haml.rb +2 -2
- data/mod/core/set/all/item.rb +2 -2
- data/mod/core/set/all/permissions.rb +0 -1
- data/mod/core/set/all/phases.rb +0 -4
- data/mod/core/set/all/references.rb +2 -3
- data/mod/core/set/all/rename.rb +1 -1
- data/mod/core/set/all/states.rb +62 -25
- data/mod/core/set/all/templating.rb +12 -16
- data/mod/core/set_pattern/08_type_plus_right.rb +2 -0
- data/mod/core/spec/chunk/nest_spec.rb +1 -0
- data/mod/core/spec/format/html_format_spec.rb +2 -2
- data/mod/core/spec/set/all/assign_attributes_spec.rb +1 -1
- data/mod/core/spec/set/all/chunk_spec.rb +1 -1
- data/mod/core/spec/set/all/collection_spec.rb +1 -1
- data/mod/core/spec/set/all/export_spec.rb +7 -7
- data/mod/core/spec/set/all/fetch_spec.rb +2 -2
- data/mod/core/spec/set/all/pattern_spec.rb +9 -9
- data/mod/core/spec/set/all/rules2_spec.rb +7 -7
- data/mod/core/spec/set/all/rules_spec.rb +1 -1
- data/mod/core/spec/set/all/templating_spec.rb +2 -6
- data/mod/core/spec/set/all/type_spec.rb +2 -2
- data/mod/developer/set/right/debug.rb +1 -1
- data/mod/edit/set/all/bridge/bridge.haml +1 -1
- data/mod/edit/set/all/bridge/tab_views.rb +4 -4
- data/mod/edit/set/all/edit_content.rb +2 -10
- data/mod/edit/set/all/{edit_in_place.rb → edit_inline.rb} +6 -5
- data/mod/edit/set/all/edit_type.rb +1 -2
- data/mod/edit/set/all/editing.rb +3 -4
- data/mod/edit/set/all/editor.rb +1 -1
- data/mod/edit/set/all/form.rb +33 -3
- data/mod/edit/set/all/form_buttons.rb +2 -1
- data/mod/edit/set/all/nest_editor.rb +2 -0
- data/mod/edit/set/all/nest_editor/_options_select_row.haml +1 -1
- data/mod/edit/set/all/nest_editor/nest_parser.rb +2 -2
- data/mod/edit/set/all/nest_image.rb +1 -1
- data/mod/edit/set/all/new.rb +1 -1
- data/mod/follow/README.md +7 -4
- data/mod/follow/set/all/notify/base_views.rb +0 -1
- data/mod/follow/set/right/followers.rb +1 -1
- data/mod/follow/set/right/following.rb +1 -1
- data/mod/follow/set/self/follow_defaults.rb +1 -1
- data/mod/follow/set/type_plus_right/user/follow.rb +1 -1
- data/mod/follow/spec/set/all/follow_spec.rb +1 -1
- data/mod/follow/spec/set/all/notify_email.txt +3 -3
- data/mod/follow/spec/set/all/notify_spec.rb +12 -1
- data/mod/follow/spec/set/type/notification_template_spec.rb +1 -2
- data/mod/google_analytics/set/all/google_analytics.rb +1 -1
- data/mod/history/lib/card/act.rb +7 -4
- data/mod/history/lib/card/act/act_renderer.rb +1 -14
- data/mod/history/lib/card/act/act_renderer/absolute_act_renderer.rb +4 -2
- data/mod/history/lib/card/act/act_renderer/relative_act_renderer.rb +6 -0
- data/mod/history/lib/card/action.rb +2 -3
- data/mod/history/set/all/history/actions.rb +4 -8
- data/mod/history/set/all/history/revision.rb +8 -0
- data/mod/history/set/all/history/views.rb +2 -0
- data/mod/history/set/all/history_bridge.rb +3 -2
- data/mod/item/set/all/bar.haml +12 -13
- data/mod/item/set/all/bar.rb +19 -37
- data/mod/item/set/all/box.rb +0 -2
- data/mod/item/set/all/expanded_bar.haml +10 -10
- data/mod/item/spec/set/all/bar_spec.rb +6 -3
- data/mod/machines/file/all_script_machine_output/file.js +38106 -71
- data/mod/machines/file/all_style_machine_output/file.css +3 -3
- data/mod/machines/file/script_html5shiv_printshiv_machine_output/file.js +1 -1
- data/mod/machines/lib/javascript/decko/autosave.js.coffee +30 -0
- data/mod/machines/lib/javascript/{decko_bridge.js.coffee → decko/bridge.js.coffee} +0 -0
- data/mod/machines/lib/javascript/decko/card_menu.js.coffee +15 -0
- data/mod/machines/lib/javascript/{decko_components.js.coffee → decko/components.js.coffee} +18 -4
- data/mod/machines/lib/javascript/decko/decko.js.coffee +91 -0
- data/mod/machines/lib/javascript/decko/doubleclick.js.coffee +30 -0
- data/mod/machines/lib/javascript/{decko_editor.js.coffee → decko/editor.js.coffee} +19 -28
- data/mod/machines/lib/javascript/decko/filter.js.coffee +166 -0
- data/mod/machines/lib/javascript/{decko_filter.js.coffee → decko/filter_items.js.coffee} +28 -82
- data/mod/machines/lib/javascript/decko/filter_links.js.coffee +67 -0
- data/mod/machines/lib/javascript/decko/follow.js.coffee +22 -0
- data/mod/machines/lib/javascript/{decko_layout.js.coffee → decko/layout.js.coffee} +4 -4
- data/mod/machines/lib/javascript/{decko_mod.js.coffee → decko/mod.js.coffee} +0 -23
- data/mod/machines/lib/javascript/{decko_modal.js.coffee → decko/modal.js.coffee} +11 -15
- data/mod/machines/lib/javascript/decko/name_editor.js.coffee +51 -0
- data/mod/machines/lib/javascript/{decko_navbox.js.coffee → decko/navbox.js.coffee} +0 -0
- data/mod/machines/lib/javascript/{decko_nest_editor.js.coffee → decko/nest_editor.js.coffee} +0 -0
- data/mod/machines/lib/javascript/{decko_nest_editor_name.js.coffee → decko/nest_editor_name.js.coffee} +0 -0
- data/mod/machines/lib/javascript/{decko_nest_editor_options.js.coffee → decko/nest_editor_options.js.coffee} +0 -0
- data/mod/machines/lib/javascript/{decko_nest_editor_rules.js.coffee → decko/nest_editor_rules.js.coffee} +0 -0
- data/mod/machines/lib/javascript/{decko_overlay.js.coffee → decko/overlay.js.coffee} +3 -0
- data/mod/machines/lib/javascript/{decko_recaptcha.js.coffee → decko/recaptcha.js.coffee} +0 -0
- data/mod/machines/lib/javascript/{decko_slot.js.coffee → decko/slot.js.coffee} +33 -4
- data/mod/machines/lib/javascript/decko/slot_ready.js.coffee +11 -0
- data/mod/machines/lib/javascript/{decko_slotter.js.coffee → decko/slotter.js.coffee} +6 -14
- data/mod/machines/lib/javascript/{decko_upload.js.coffee → decko/upload.js.coffee} +0 -0
- data/mod/machines/lib/stylesheets/style_cards.scss +109 -26
- data/mod/machines/set/abstract/machine.rb +3 -3
- data/mod/machines/set/abstract/skin_box.rb +1 -2
- data/mod/machines/set/right/machine_output.rb +4 -0
- data/mod/machines/set/self/script_decko.rb +11 -0
- data/mod/navbar/set/abstract/pointer/html_views.rb +5 -0
- data/mod/navbar/set/abstract/roles_dropdown.rb +15 -0
- data/mod/navbar/set/all/navbar_links.rb +58 -0
- data/mod/navbar/set/right/enabled_roles.rb +63 -0
- data/mod/navbar/set/right/enabled_roles/role_checkbox.haml +4 -0
- data/mod/navbar/set/self/account_links.rb +98 -0
- data/mod/navbar/set/self/dropdown_divider.rb +9 -0
- data/mod/{search → navbar}/set/self/navbox.rb +2 -2
- data/mod/navbar/set/type/html.rb +14 -0
- data/mod/navbar/spec/set/all/navbar_links_spec.rb +55 -0
- data/mod/navbar/spec/set/right/enabled_roles_spec.rb +12 -0
- data/mod/{account → navbar}/spec/set/self/account_links_spec.rb +2 -2
- data/mod/{search → navbar}/spec/set/self/navbox_spec.rb +0 -0
- data/mod/pointer/set/abstract/00_paging_params.rb +10 -3
- data/mod/pointer/set/abstract/01_paging.rb +3 -12
- data/mod/pointer/set/abstract/02_pointer/html_views.rb +6 -14
- data/mod/pointer/set/abstract/02_pointer/html_views/filter.rb +6 -5
- data/mod/pointer/set/abstract/02_pointer/html_views/filter/filter_items.haml +8 -10
- data/mod/pointer/set/abstract/02_pointer/other_views.rb +1 -2
- data/mod/pointer/set/type/link_list.rb +23 -0
- data/mod/pointer/set/type/list.rb +16 -0
- data/mod/pointer/set/type/mirror_list.rb +93 -0
- data/{tmpsets/set/mod016-standard/type/list.rb → mod/pointer/set/type/mirrored_list.rb} +24 -32
- data/mod/pointer/set/type/pointer.rb +1 -1
- data/mod/pointer/spec/set/abstract/paging_params_spec.rb +12 -0
- data/mod/pointer/spec/set/type/link_list_spec.rb +15 -0
- data/mod/pointer/spec/set/type/link_spec.rb +17 -0
- data/mod/{standard/spec/set/type/listed_by_spec.rb → pointer/spec/set/type/mirror_list_spec.rb} +8 -16
- data/mod/{standard/spec/set/type/list_spec.rb → pointer/spec/set/type/mirrored_list_spec.rb} +9 -16
- data/mod/rules/set/rule/bridge_rules_editor.rb +4 -3
- data/mod/rules/set/rule/editor.rb +4 -4
- data/mod/rules/set/rule/rule_form.rb +1 -1
- data/mod/rules/set/rule/table.rb +2 -2
- data/mod/rules/set/rule/table_row.rb +4 -3
- data/mod/rules/set/type/set/html_views.rb +1 -1
- data/mod/rules/set/type/set/html_views/nest_rules.rb +1 -1
- data/mod/rules/set/type/set/rules_filter.rb +5 -1
- data/mod/rules/set/type/set/setting_lists.rb +1 -1
- data/mod/rules/spec/set/type/set/html_views_spec.rb +1 -1
- data/mod/rules/spec/set/type/set_spec.rb +1 -1
- data/mod/search/lib/card/filter_query.rb +0 -6
- data/mod/search/set/abstract/00_filter_helper.rb +6 -8
- data/mod/search/set/abstract/03_filter.rb +2 -107
- data/mod/search/set/abstract/03_filter/_filter_input.haml +8 -0
- data/mod/search/set/abstract/03_filter/filter_form.haml +53 -0
- data/mod/search/set/abstract/03_filter/filter_form.rb +77 -0
- data/mod/search/set/abstract/03_filter/filtered_content.haml +5 -0
- data/mod/search/set/abstract/{01_filter_form_helper.rb → 03_filter/form_helper.rb} +39 -17
- data/mod/search/set/abstract/03_filter/query_construction.rb +36 -0
- data/mod/search/set/abstract/03_filter/quick_filters.haml +14 -0
- data/mod/search/set/abstract/04_right_filter_form.rb +6 -2
- data/mod/search/set/abstract/search.rb +2 -1
- data/mod/search/set/abstract/search/views.rb +4 -3
- data/mod/search/set/abstract/wql_search.rb +5 -5
- data/mod/search/set/self/recent.rb +1 -1
- data/mod/search/spec/set/abstract/filter_spec.rb +7 -13
- data/mod/search/template/abstract/search/select_item.haml +8 -7
- data/mod/settings/set/abstract/permission.rb +1 -2
- data/mod/settings/set/abstract/templated_nests.rb +7 -0
- data/mod/settings/set/right/add_help.rb +1 -11
- data/mod/settings/set/right/default.rb +6 -1
- data/mod/settings/set/right/help.rb +2 -2
- data/mod/settings/set/right/script.rb +4 -0
- data/mod/settings/set/right/structure.rb +6 -1
- data/mod/settings/set/right/style.rb +4 -0
- data/mod/settings/set/type/setting.rb +30 -25
- data/mod/settings/spec/set/right/structure_spec.rb +1 -1
- data/mod/solid_cache/set/right/solid_cache.rb +4 -0
- data/mod/standard/file/logo/image-original.svg +2 -2
- data/mod/standard/set/all/comment.rb +1 -2
- data/mod/standard/set/all/error.rb +2 -3
- data/mod/standard/set/all/links.rb +8 -2
- data/mod/standard/set/all/list_changes.rb +5 -5
- data/mod/standard/set/all/path.rb +26 -0
- data/mod/standard/set/all/rich_html/content.rb +33 -6
- data/mod/standard/set/all/rich_html/error.rb +7 -6
- data/mod/standard/set/all/rich_html/frame.rb +3 -2
- data/mod/standard/set/all/rich_html/header.rb +4 -12
- data/mod/standard/set/all/rich_html/html_views/help.rb +17 -4
- data/mod/standard/set/all/rich_html/html_views/info.rb +30 -5
- data/mod/standard/set/all/rich_html/menu.rb +28 -14
- data/mod/standard/set/all/rich_html/modal.rb +4 -5
- data/mod/standard/set/all/rich_html/overlay.rb +3 -3
- data/mod/standard/set/all/rich_html/process_layout.rb +1 -0
- data/mod/standard/set/all/rich_html/show.rb +2 -2
- data/mod/standard/set/all/rich_html/title.rb +17 -6
- data/mod/standard/set/all/rich_html/wrapper.rb +1 -1
- data/mod/standard/set/right/head.rb +4 -0
- data/mod/standard/set/type/basic.rb +21 -10
- data/mod/standard/set/type/cardtype.rb +28 -9
- data/mod/standard/set/type/session.rb +25 -9
- data/mod/standard/spec/set/all/path_spec.rb +5 -0
- data/mod/standard/spec/set/all/rich_html/menu_spec.rb +1 -1
- data/mod/standard/spec/set/all/rich_html/process_layout_spec.rb +7 -7
- data/mod/standard/spec/set/all/rich_html/wrapper_spec.rb +2 -2
- data/mod/standard/spec/set/type/cardtype_spec.rb +8 -8
- data/mod/standard/spec/set/type/layout_type_spec.rb +7 -5
- data/mod/standard/spec/set/type/search_type_spec.rb +2 -2
- data/mod/standard/spec/set/type/session_spec.rb +33 -0
- data/mod/tinymce_editor/lib/javascript/script_tinymce_config.js.coffee +6 -1
- data/mod/utility/set/abstract/bs_badge.rb +3 -2
- data/mod/utility/set/abstract/bs_badge/labeled_badge.haml +1 -1
- data/mod/utility/set/abstract/filterable.rb +13 -0
- data/mod/utility/set/abstract/filterable_bar.rb +11 -0
- data/mod/utility/set/abstract/media.rb +2 -18
- data/mod/utility/set/abstract/media/media_snippet.haml +6 -7
- data/mod/utility/spec/set/abstract/media_spec.rb +0 -6
- data/mod/virtual/set/abstract/virtual_cache.rb +1 -1
- data/tmpsets/set/mod001-utility/abstract/bs_badge.rb +30 -0
- data/tmpsets/set/mod001-utility/abstract/filterable.rb +25 -0
- data/tmpsets/set/mod001-utility/abstract/media.rb +42 -0
- data/tmpsets/set/mod001-utility/abstract/utility.rb +22 -0
- data/tmpsets/set/{mod001-admin → mod002-admin}/self/admin.rb +54 -32
- data/tmpsets/set/{mod001-admin → mod002-admin}/self/admin_info.rb +24 -26
- data/tmpsets/set/mod002-admin/self/recaptcha_proxy.rb +12 -0
- data/tmpsets/set/mod002-admin/self/recaptcha_secret_key.rb +18 -0
- data/tmpsets/set/mod002-admin/self/recaptcha_site_key.rb +18 -0
- data/tmpsets/set/mod002-admin/self/trash.rb +72 -0
- data/tmpsets/set/mod002-admin/self/version.rb +22 -0
- data/tmpsets/set/mod003-core/abstract/code_file.rb +91 -0
- data/tmpsets/set/mod003-core/abstract/haml_file.rb +29 -0
- data/tmpsets/set/mod003-core/abstract/lock.rb +35 -0
- data/tmpsets/set/mod003-core/abstract/vendor_code_file.rb +19 -0
- data/tmpsets/set/{mod002-core/all/actify.rb → mod003-core/all/abort.rb} +31 -48
- data/tmpsets/set/mod003-core/all/actify.rb +74 -0
- data/tmpsets/set/{mod002-core → mod003-core}/all/active_card.rb +7 -6
- data/tmpsets/set/mod003-core/all/assign_attributes.rb +131 -0
- data/tmpsets/set/mod003-core/all/cache.rb +123 -0
- data/tmpsets/set/mod003-core/all/chunk.rb +156 -0
- data/tmpsets/set/mod003-core/all/codename.rb +36 -0
- data/tmpsets/set/mod003-core/all/collection.rb +64 -0
- data/tmpsets/set/mod003-core/all/content.rb +121 -0
- data/tmpsets/set/mod003-core/all/contextual_content.rb +37 -0
- data/tmpsets/set/{mod002-core → mod003-core}/all/debug.rb +7 -5
- data/tmpsets/set/mod003-core/all/erb.rb +20 -0
- data/tmpsets/set/mod003-core/all/event_conditions.rb +142 -0
- data/tmpsets/set/mod003-core/all/export.rb +77 -0
- data/tmpsets/set/mod003-core/all/extended.rb +58 -0
- data/tmpsets/set/mod003-core/all/fetch.rb +159 -0
- data/tmpsets/set/mod003-core/all/fetch_helper.rb +162 -0
- data/tmpsets/set/mod003-core/all/haml.rb +84 -0
- data/tmpsets/set/mod003-core/all/i18n.rb +19 -0
- data/tmpsets/set/mod003-core/all/initialize.rb +55 -0
- data/tmpsets/set/mod003-core/all/item.rb +123 -0
- data/tmpsets/set/mod003-core/all/layouts.rb +43 -0
- data/tmpsets/set/mod003-core/all/location_history.rb +28 -0
- data/tmpsets/set/mod003-core/all/name.rb +242 -0
- data/tmpsets/set/mod003-core/all/name_events.rb +118 -0
- data/tmpsets/set/mod003-core/all/observer.rb +31 -0
- data/tmpsets/set/{mod002-core → mod003-core}/all/pattern.rb +12 -15
- data/tmpsets/set/{mod002-core → mod003-core}/all/permissions.rb +63 -101
- data/tmpsets/set/mod003-core/all/phases.rb +25 -0
- data/tmpsets/set/{mod002-core → mod003-core}/all/references.rb +42 -33
- data/tmpsets/set/mod003-core/all/rename.rb +47 -0
- data/tmpsets/set/{mod002-core → mod003-core}/all/rules.rb +17 -23
- data/tmpsets/set/mod003-core/all/stages.rb +26 -0
- data/tmpsets/set/mod003-core/all/states.rb +91 -0
- data/tmpsets/set/{mod002-core → mod003-core}/all/subcards.rb +45 -20
- data/tmpsets/set/mod003-core/all/tabs.rb +59 -0
- data/tmpsets/set/{mod002-core → mod003-core}/all/templating.rb +24 -22
- data/tmpsets/set/mod003-core/all/trash.rb +135 -0
- data/tmpsets/set/{mod002-core → mod003-core}/all/type.rb +23 -13
- data/tmpsets/set/mod003-core/all/update_read_rules.rb +39 -0
- data/tmpsets/set/mod003-core/all/utils.rb +93 -0
- data/tmpsets/set/mod004-virtual/abstract/virtual_cache.rb +52 -0
- data/tmpsets/set/mod005-history/all/history.rb +85 -0
- data/tmpsets/set/mod005-history/all/history/act_listing.rb +133 -0
- data/tmpsets/set/mod005-history/all/history/actions.rb +133 -0
- data/tmpsets/set/mod005-history/all/history/acts.rb +21 -0
- data/tmpsets/set/mod005-history/all/history/events.rb +108 -0
- data/tmpsets/set/mod005-history/all/history/last.rb +107 -0
- data/tmpsets/set/mod005-history/all/history/revision.rb +73 -0
- data/tmpsets/set/mod005-history/all/history/selected.rb +73 -0
- data/tmpsets/set/mod005-history/all/history/views.rb +44 -0
- data/tmpsets/set/mod005-history/all/history_bridge.rb +75 -0
- data/tmpsets/set/mod006-basic_formats/all/all_css.rb +46 -0
- data/tmpsets/set/mod006-basic_formats/all/all_csv.rb +106 -0
- data/tmpsets/set/mod006-basic_formats/all/all_js.rb +19 -0
- data/tmpsets/set/mod006-basic_formats/all/base.rb +189 -0
- data/tmpsets/set/mod006-basic_formats/all/file.rb +18 -0
- data/tmpsets/set/mod006-basic_formats/all/head.rb +155 -0
- data/tmpsets/set/mod006-basic_formats/all/json.rb +161 -0
- data/tmpsets/set/mod006-basic_formats/all/rss.rb +85 -0
- data/tmpsets/set/mod006-basic_formats/all/text.rb +16 -0
- data/tmpsets/set/mod006-basic_formats/self/head.rb +31 -0
- data/tmpsets/set/mod007-item/all/bar.rb +124 -0
- data/tmpsets/set/mod007-item/all/box.rb +25 -0
- data/tmpsets/set/mod008-pointer/abstract/00_paging_params.rb +35 -0
- data/tmpsets/set/mod008-pointer/abstract/01_paging.rb +157 -0
- data/tmpsets/set/mod008-pointer/abstract/01_paging/paging_links.rb +98 -0
- data/tmpsets/set/mod008-pointer/abstract/02_pointer.rb +18 -0
- data/tmpsets/set/mod008-pointer/abstract/02_pointer/events.rb +59 -0
- data/tmpsets/set/mod008-pointer/abstract/02_pointer/html_views.rb +117 -0
- data/tmpsets/set/mod008-pointer/abstract/02_pointer/html_views/filter.rb +73 -0
- data/tmpsets/set/mod008-pointer/abstract/02_pointer/item_api.rb +181 -0
- data/tmpsets/set/mod008-pointer/abstract/02_pointer/options_api.rb +93 -0
- data/tmpsets/set/mod008-pointer/abstract/02_pointer/other_views.rb +111 -0
- data/tmpsets/set/mod008-pointer/abstract/code_pointer.rb +44 -0
- data/tmpsets/set/mod008-pointer/right/options.rb +13 -0
- data/tmpsets/set/mod008-pointer/self/input_options.rb +22 -0
- data/tmpsets/set/mod008-pointer/self/script_editors.rb +10 -0
- data/tmpsets/set/mod008-pointer/self/script_libraries.rb +10 -0
- data/tmpsets/set/mod008-pointer/self/script_mods.rb +10 -0
- data/tmpsets/set/mod008-pointer/self/script_pointer_config.rb +18 -0
- data/tmpsets/set/mod008-pointer/self/style_libraries.rb +10 -0
- data/tmpsets/set/mod008-pointer/self/style_mods.rb +10 -0
- data/tmpsets/set/mod008-pointer/type/pointer.rb +19 -0
- data/tmpsets/set/mod009-ace_editor/abstract/ace_editor.rb +20 -0
- data/tmpsets/set/mod009-ace_editor/self/script_ace.rb +13 -0
- data/tmpsets/set/mod009-ace_editor/self/script_ace_config.rb +13 -0
- data/tmpsets/set/mod010-prosemirror_editor/abstract/prosemirror_editor.rb +16 -0
- data/tmpsets/set/mod010-prosemirror_editor/self/script_prosemirror.rb +13 -0
- data/tmpsets/set/mod010-prosemirror_editor/self/script_prosemirror_config.rb +14 -0
- data/tmpsets/set/mod010-prosemirror_editor/self/style_prosemirror.rb +12 -0
- data/tmpsets/set/mod011-tinymce_editor/abstract/tinymce_editor.rb +15 -0
- data/tmpsets/set/mod011-tinymce_editor/self/script_tinymce.rb +13 -0
- data/tmpsets/set/mod011-tinymce_editor/self/script_tinymce_config.rb +13 -0
- data/tmpsets/set/{mod009-solid_cache → mod012-solid_cache}/abstract/solid_cache.rb +47 -38
- data/tmpsets/set/mod012-solid_cache/all/solid_cache.rb +23 -0
- data/tmpsets/set/mod012-solid_cache/right/solid_cache.rb +57 -0
- data/tmpsets/set/mod013-basic_types/type/html.rb +32 -0
- data/tmpsets/set/mod013-basic_types/type/json.rb +40 -0
- data/tmpsets/set/mod013-basic_types/type/plain_text.rb +18 -0
- data/tmpsets/set/mod014-machines/abstract/machine.rb +202 -0
- data/tmpsets/set/mod014-machines/abstract/machine/output_cache.rb +25 -0
- data/tmpsets/set/mod014-machines/abstract/machine/output_update.rb +68 -0
- data/tmpsets/set/{mod011-machines → mod014-machines}/abstract/machine_input.rb +11 -13
- data/tmpsets/set/mod014-machines/abstract/script.rb +93 -0
- data/tmpsets/set/mod014-machines/abstract/skin_box.rb +42 -0
- data/tmpsets/set/mod014-machines/all/reset_machines.rb +31 -0
- data/tmpsets/set/mod014-machines/right/machine_cache.rb +14 -0
- data/tmpsets/set/mod014-machines/right/machine_input.rb +16 -0
- data/tmpsets/set/{mod011-machines → mod014-machines}/right/machine_output.rb +14 -8
- data/tmpsets/set/mod014-machines/self/script_decko.rb +20 -0
- data/tmpsets/set/mod014-machines/self/script_html5shiv_printshiv.rb +20 -0
- data/tmpsets/set/mod014-machines/self/script_jquery.rb +19 -0
- data/tmpsets/set/mod014-machines/self/script_jquery_helper.rb +23 -0
- data/tmpsets/set/mod014-machines/self/style_bootstrap_compatible.rb +10 -0
- data/tmpsets/set/mod014-machines/self/style_cards.rb +10 -0
- data/tmpsets/set/mod014-machines/self/style_jquery_ui_smoothness.rb +10 -0
- data/tmpsets/set/mod014-machines/type/coffee_script.rb +34 -0
- data/tmpsets/set/mod014-machines/type/css.rb +94 -0
- data/tmpsets/set/mod014-machines/type/java_script.rb +18 -0
- data/tmpsets/set/mod014-machines/type/scss.rb +30 -0
- data/tmpsets/set/mod014-machines/type/skin.rb +18 -0
- data/tmpsets/set/mod015-settings/abstract/permission.rb +127 -0
- data/tmpsets/set/mod015-settings/abstract/templated_nests.rb +16 -0
- data/tmpsets/set/mod015-settings/right/add_help.rb +10 -0
- data/tmpsets/set/mod015-settings/right/autoname.rb +12 -0
- data/tmpsets/set/mod015-settings/right/comment.rb +10 -0
- data/tmpsets/set/mod015-settings/right/create.rb +10 -0
- data/tmpsets/set/mod015-settings/right/default.rb +27 -0
- data/tmpsets/set/mod015-settings/right/delete.rb +10 -0
- data/tmpsets/set/mod015-settings/right/help.rb +23 -0
- data/tmpsets/set/{mod002-core/all/update_read_rules.rb → mod015-settings/right/read.rb} +43 -56
- data/tmpsets/set/mod015-settings/right/script.rb +22 -0
- data/tmpsets/set/mod015-settings/right/structure.rb +75 -0
- data/tmpsets/set/mod015-settings/right/style.rb +65 -0
- data/tmpsets/set/mod015-settings/right/update.rb +10 -0
- data/tmpsets/set/mod015-settings/self/accountable.rb +12 -0
- data/tmpsets/set/mod015-settings/self/add_help.rb +11 -0
- data/tmpsets/set/mod015-settings/self/autoname.rb +11 -0
- data/tmpsets/set/mod015-settings/self/captcha.rb +11 -0
- data/tmpsets/set/mod015-settings/self/create.rb +12 -0
- data/tmpsets/set/mod015-settings/self/csv_structure.rb +11 -0
- data/tmpsets/set/mod015-settings/self/default.rb +12 -0
- data/tmpsets/set/mod015-settings/self/default_html_view.rb +11 -0
- data/tmpsets/set/mod015-settings/self/delete.rb +12 -0
- data/tmpsets/set/mod015-settings/self/follow_fields.rb +11 -0
- data/tmpsets/set/mod015-settings/self/head.rb +11 -0
- data/tmpsets/set/mod015-settings/self/help.rb +12 -0
- data/tmpsets/set/mod015-settings/self/input.rb +12 -0
- data/tmpsets/set/mod015-settings/self/layout.rb +11 -0
- data/tmpsets/set/mod015-settings/self/on_create.rb +11 -0
- data/tmpsets/set/mod015-settings/self/on_delete.rb +11 -0
- data/tmpsets/set/mod015-settings/self/on_update.rb +11 -0
- data/tmpsets/set/mod015-settings/self/options.rb +13 -0
- data/tmpsets/set/mod015-settings/self/options_label.rb +13 -0
- data/tmpsets/set/mod015-settings/self/read.rb +12 -0
- data/tmpsets/set/mod015-settings/self/recent_settings.rb +16 -0
- data/tmpsets/set/mod015-settings/self/script.rb +11 -0
- data/tmpsets/set/mod015-settings/self/structure.rb +12 -0
- data/tmpsets/set/mod015-settings/self/style.rb +11 -0
- data/tmpsets/set/mod015-settings/self/table_of_contents.rb +11 -0
- data/tmpsets/set/mod015-settings/self/thanks.rb +12 -0
- data/tmpsets/set/mod015-settings/self/update.rb +12 -0
- data/tmpsets/set/{mod012-settings → mod015-settings}/type/setting.rb +33 -36
- data/tmpsets/set/mod016-email/abstract/email_field.rb +50 -0
- data/tmpsets/set/mod016-email/abstract/test_context.rb +35 -0
- data/tmpsets/set/mod016-email/all/email_html.rb +18 -0
- data/tmpsets/set/mod016-email/all/email_text.rb +23 -0
- data/tmpsets/set/mod016-email/right/bcc.rb +10 -0
- data/tmpsets/set/mod016-email/right/cc.rb +10 -0
- data/tmpsets/set/mod016-email/right/from.rb +10 -0
- data/tmpsets/set/mod016-email/right/html_message.rb +22 -0
- data/tmpsets/set/mod016-email/right/subject.rb +10 -0
- data/tmpsets/set/mod016-email/right/text_message.rb +10 -0
- data/tmpsets/set/mod016-email/right/to.rb +10 -0
- data/tmpsets/set/mod016-email/type/email_template.rb +100 -0
- data/tmpsets/set/mod016-email/type/email_template/email_config.rb +90 -0
- data/tmpsets/set/mod017-follow/abstract/follow_option.rb +65 -0
- data/tmpsets/set/mod017-follow/all/follow.rb +42 -0
- data/tmpsets/set/mod017-follow/all/follow/follow_link.rb +69 -0
- data/tmpsets/set/mod017-follow/all/follow/follow_link_views.rb +38 -0
- data/tmpsets/set/mod017-follow/all/follow/followed_by.rb +80 -0
- data/tmpsets/set/mod017-follow/all/follow/follower_ids.rb +118 -0
- data/tmpsets/set/mod017-follow/all/follow/start_follow_link.rb +19 -0
- data/tmpsets/set/mod017-follow/all/follow/stop_follow_link.rb +20 -0
- data/tmpsets/set/mod017-follow/all/notify.rb +93 -0
- data/tmpsets/set/mod017-follow/all/notify/base_views.rb +139 -0
- data/tmpsets/set/mod017-follow/all/notify/html_views.rb +26 -0
- data/tmpsets/set/mod017-follow/right/account.rb +22 -0
- data/tmpsets/set/mod017-follow/right/follow.rb +127 -0
- data/tmpsets/set/mod017-follow/right/follow_fields.rb +12 -0
- data/tmpsets/set/mod017-follow/right/followers.rb +35 -0
- data/tmpsets/set/mod017-follow/right/following.rb +59 -0
- data/tmpsets/set/mod017-follow/self/always.rb +22 -0
- data/tmpsets/set/mod017-follow/self/created.rb +28 -0
- data/tmpsets/set/{mod013-email → mod017-follow}/self/edited.rb +8 -6
- data/tmpsets/set/mod017-follow/self/follow.rb +11 -0
- data/tmpsets/set/mod017-follow/self/follow_defaults.rb +97 -0
- data/tmpsets/set/mod017-follow/self/never.rb +22 -0
- data/tmpsets/set/mod017-follow/type/cardtype.rb +24 -0
- data/tmpsets/set/mod017-follow/type/set.rb +62 -0
- data/tmpsets/set/mod017-follow/type/user.rb +16 -0
- data/tmpsets/set/mod017-follow/type_plus_right/user/follow.rb +89 -0
- data/tmpsets/set/mod017-follow/type_plus_right/user/follow/follow_editor_helper.rb +130 -0
- data/tmpsets/set/{mod014-developer → mod018-developer}/all/event_viz.rb +10 -9
- data/tmpsets/set/{mod014-developer → mod018-developer}/all/view_viz.rb +8 -6
- data/tmpsets/set/{mod014-developer → mod018-developer}/right/debug.rb +12 -10
- data/tmpsets/set/{mod015-carrierwave → mod019-carrierwave}/abstract/attachment.rb +27 -21
- data/tmpsets/set/mod019-carrierwave/abstract/attachment/paths.rb +67 -0
- data/tmpsets/set/{mod015-carrierwave → mod019-carrierwave}/abstract/attachment/storage_type.rb +64 -40
- data/tmpsets/set/{mod015-carrierwave → mod019-carrierwave}/abstract/attachment/upload_cache.rb +28 -17
- data/tmpsets/set/{mod015-carrierwave → mod019-carrierwave}/all/file_utils.rb +18 -7
- data/tmpsets/set/{mod015-carrierwave → mod019-carrierwave}/self/admin.rb +10 -8
- data/tmpsets/set/mod019-carrierwave/self/favicon.rb +20 -0
- data/tmpsets/set/mod019-carrierwave/self/new_file.rb +22 -0
- data/tmpsets/set/mod019-carrierwave/self/new_image.rb +22 -0
- data/tmpsets/set/mod019-carrierwave/type/file.rb +123 -0
- data/tmpsets/set/mod019-carrierwave/type/image.rb +182 -0
- data/tmpsets/set/mod020-search/abstract/00_filter_helper.rb +66 -0
- data/tmpsets/set/mod020-search/abstract/01_filter_form_helper.rb +125 -0
- data/tmpsets/set/mod020-search/abstract/02_search_params.rb +67 -0
- data/tmpsets/set/mod020-search/abstract/03_filter.rb +140 -0
- data/tmpsets/set/mod020-search/abstract/04_right_filter_form.rb +31 -0
- data/tmpsets/set/mod020-search/abstract/search.rb +92 -0
- data/tmpsets/set/mod020-search/abstract/search/views.rb +168 -0
- data/tmpsets/set/mod020-search/abstract/wql_search.rb +120 -0
- data/tmpsets/set/mod020-search/self/navbox.rb +41 -0
- data/tmpsets/set/mod020-search/self/recent.rb +44 -0
- data/tmpsets/set/mod020-search/self/search.rb +103 -0
- data/tmpsets/set/mod020-search/type/search_type.rb +88 -0
- data/tmpsets/set/mod021-standard/all/comment.rb +88 -0
- data/tmpsets/set/mod021-standard/all/error.rb +85 -0
- data/tmpsets/set/mod021-standard/all/links.rb +158 -0
- data/tmpsets/set/{mod016-standard → mod021-standard}/all/list_changes.rb +15 -9
- data/tmpsets/set/mod021-standard/all/path.rb +185 -0
- data/tmpsets/set/mod021-standard/all/rich_html.rb +13 -0
- data/tmpsets/set/mod021-standard/all/rich_html/alert.rb +32 -0
- data/tmpsets/set/mod021-standard/all/rich_html/content.rb +144 -0
- data/tmpsets/set/mod021-standard/all/rich_html/error.rb +211 -0
- data/tmpsets/set/mod021-standard/all/rich_html/frame.rb +62 -0
- data/tmpsets/set/mod021-standard/all/rich_html/header.rb +78 -0
- data/tmpsets/set/mod021-standard/all/rich_html/html_views/help.rb +36 -0
- data/tmpsets/set/mod021-standard/all/rich_html/html_views/info.rb +93 -0
- data/tmpsets/set/mod021-standard/all/rich_html/html_views/size.rb +26 -0
- data/tmpsets/set/mod021-standard/all/rich_html/menu.rb +75 -0
- data/tmpsets/set/mod021-standard/all/rich_html/modal.rb +128 -0
- data/tmpsets/set/mod021-standard/all/rich_html/overlay.rb +91 -0
- data/tmpsets/set/mod021-standard/all/rich_html/process_layout.rb +80 -0
- data/tmpsets/set/mod021-standard/all/rich_html/show.rb +46 -0
- data/tmpsets/set/mod021-standard/all/rich_html/title.rb +56 -0
- data/tmpsets/set/mod021-standard/all/rich_html/wrapper.rb +156 -0
- data/tmpsets/set/mod021-standard/right/discussion.rb +12 -0
- data/tmpsets/set/mod021-standard/right/head.rb +22 -0
- data/tmpsets/set/mod021-standard/right/when_created.rb +15 -0
- data/tmpsets/set/mod021-standard/right/when_last_edited.rb +15 -0
- data/tmpsets/set/mod021-standard/self/alerts.rb +14 -0
- data/tmpsets/set/mod021-standard/self/codenames.rb +10 -0
- data/tmpsets/set/mod021-standard/self/foot.rb +15 -0
- data/tmpsets/set/mod021-standard/self/home.rb +18 -0
- data/tmpsets/set/mod021-standard/self/now.rb +15 -0
- data/tmpsets/set/{mod016-standard → mod021-standard}/type/basic.rb +37 -24
- data/tmpsets/set/mod021-standard/type/cardtype.rb +104 -0
- data/tmpsets/set/mod021-standard/type/layout_type.rb +25 -0
- data/{mod/standard/set → tmpsets/set/mod021-standard}/type/list.rb +9 -0
- data/{mod/standard/set → tmpsets/set/mod021-standard}/type/listed_by.rb +9 -0
- data/tmpsets/set/mod021-standard/type/notification_template.rb +42 -0
- data/tmpsets/set/mod021-standard/type/number.rb +31 -0
- data/tmpsets/set/mod021-standard/type/phrase.rb +14 -0
- data/tmpsets/set/mod021-standard/type/session.rb +42 -0
- data/tmpsets/set/mod021-standard/type/toggle.rb +39 -0
- data/tmpsets/set/mod021-standard/type/uri.rb +24 -0
- data/tmpsets/set/mod022-rules/rstar/rule_user.rb +17 -0
- data/tmpsets/set/mod022-rules/rule/bridge_rules_editor.rb +42 -0
- data/tmpsets/set/mod022-rules/rule/editor.rb +193 -0
- data/tmpsets/set/mod022-rules/rule/rule_form.rb +66 -0
- data/tmpsets/set/mod022-rules/rule/rule_form/buttons.rb +53 -0
- data/tmpsets/set/mod022-rules/rule/rule_form/form_elements.rb +61 -0
- data/tmpsets/set/mod022-rules/rule/rule_form/rule_set_radio.rb +94 -0
- data/tmpsets/set/mod022-rules/rule/rule_form/set_selection.rb +55 -0
- data/tmpsets/set/mod022-rules/rule/rules.rb +93 -0
- data/tmpsets/set/mod022-rules/rule/table.rb +36 -0
- data/tmpsets/set/mod022-rules/rule/table_row.rb +72 -0
- data/tmpsets/set/mod022-rules/self/script_rules.rb +12 -0
- data/tmpsets/set/mod022-rules/type/set.rb +91 -0
- data/tmpsets/set/mod022-rules/type/set/html_views.rb +78 -0
- data/tmpsets/set/mod022-rules/type/set/html_views/nest_rules.rb +23 -0
- data/tmpsets/set/mod022-rules/type/set/html_views/rules_bridge.rb +30 -0
- data/tmpsets/set/mod022-rules/type/set/html_views/template.rb +52 -0
- data/tmpsets/set/mod022-rules/type/set/rules_filter.rb +55 -0
- data/tmpsets/set/mod022-rules/type/set/setting_lists.rb +92 -0
- data/tmpsets/set/mod023-edit/all/bridge.rb +72 -0
- data/tmpsets/set/mod023-edit/all/bridge/follow_section.rb +46 -0
- data/tmpsets/set/mod023-edit/all/bridge/tab_views.rb +84 -0
- data/tmpsets/set/mod023-edit/all/bridge/tab_visibility.rb +60 -0
- data/tmpsets/set/mod023-edit/all/edit_content.rb +73 -0
- data/tmpsets/set/mod023-edit/all/edit_inline.rb +57 -0
- data/tmpsets/set/mod023-edit/all/edit_name.rb +101 -0
- data/tmpsets/set/mod023-edit/all/edit_type.rb +37 -0
- data/tmpsets/set/mod023-edit/all/editing.rb +96 -0
- data/tmpsets/set/mod023-edit/all/editor.rb +56 -0
- data/tmpsets/set/mod023-edit/all/form.rb +264 -0
- data/tmpsets/set/mod023-edit/all/form_buttons.rb +64 -0
- data/tmpsets/set/mod023-edit/all/form_elements.rb +79 -0
- data/tmpsets/set/mod023-edit/all/formgroup.rb +46 -0
- data/tmpsets/set/mod023-edit/all/nest_editor.rb +115 -0
- data/tmpsets/set/mod023-edit/all/nest_editor/nest_parser.rb +71 -0
- data/tmpsets/set/mod023-edit/all/nest_image.rb +46 -0
- data/tmpsets/set/mod023-edit/all/new.rb +135 -0
- data/tmpsets/set/mod024-date/all/calendar.rb +18 -0
- data/tmpsets/set/mod024-date/self/script_datepicker.rb +16 -0
- data/tmpsets/set/mod024-date/self/script_datepicker_config.rb +13 -0
- data/tmpsets/set/mod024-date/self/style_datepicker.rb +20 -0
- data/tmpsets/set/mod024-date/type/date.rb +14 -0
- data/tmpsets/set/{mod017-account → mod025-account}/all/account.rb +18 -12
- data/tmpsets/set/mod025-account/right/account.rb +199 -0
- data/tmpsets/set/mod025-account/right/email.rb +50 -0
- data/tmpsets/set/{mod017-account → mod025-account}/right/password.rb +29 -20
- data/tmpsets/set/mod025-account/right/salt.rb +18 -0
- data/tmpsets/set/mod025-account/right/status.rb +18 -0
- data/tmpsets/set/mod025-account/right/token.rb +63 -0
- data/{mod/account/set → tmpsets/set/mod025-account}/self/account_links.rb +29 -5
- data/tmpsets/set/mod025-account/self/signin.rb +188 -0
- data/tmpsets/set/mod025-account/type/signup.rb +191 -0
- data/tmpsets/set/mod025-account/type/user.rb +88 -0
- data/tmpsets/set/mod025-account/type_plus_right/user/email.rb +22 -0
- data/tmpsets/set/mod026-bootstrap/abstract/bootstrap_code_file.rb +62 -0
- data/tmpsets/set/mod026-bootstrap/abstract/bootswatch_theme.rb +165 -0
- data/tmpsets/set/mod026-bootstrap/abstract/bootswatch_theme/html_views.rb +39 -0
- data/tmpsets/set/mod026-bootstrap/all/bootstrap/accordion.rb +72 -0
- data/tmpsets/set/mod026-bootstrap/all/bootstrap/dropdown.rb +96 -0
- data/tmpsets/set/{mod018-bootstrap → mod026-bootstrap}/all/bootstrap/form.rb +11 -9
- data/tmpsets/set/mod026-bootstrap/all/bootstrap/helper.rb +57 -0
- data/tmpsets/set/mod026-bootstrap/all/bootstrap/icon.rb +118 -0
- data/tmpsets/set/mod026-bootstrap/all/bootstrap/navbar.rb +75 -0
- data/tmpsets/set/mod026-bootstrap/all/bootstrap/table.rb +100 -0
- data/tmpsets/set/mod026-bootstrap/all/bootstrap/tabs.rb +140 -0
- data/tmpsets/set/mod026-bootstrap/all/bootstrap/wrapper.rb +28 -0
- data/tmpsets/set/mod026-bootstrap/all/rich_bootstrap.rb +17 -0
- data/tmpsets/set/mod026-bootstrap/self/bootstrap_core.rb +22 -0
- data/tmpsets/set/mod026-bootstrap/self/bootstrap_functions.rb +14 -0
- data/tmpsets/set/mod026-bootstrap/self/font_awesome.rb +11 -0
- data/tmpsets/set/mod026-bootstrap/self/material_icons.rb +11 -0
- data/tmpsets/set/mod026-bootstrap/self/script_bootstrap.rb +21 -0
- data/tmpsets/set/mod026-bootstrap/self/script_load_select2.rb +11 -0
- data/tmpsets/set/mod026-bootstrap/self/script_select2.rb +21 -0
- data/tmpsets/set/mod026-bootstrap/self/smartmenu_css.rb +14 -0
- data/tmpsets/set/mod026-bootstrap/self/smartmenu_js.rb +14 -0
- data/tmpsets/set/mod026-bootstrap/self/style_bootstrap_cards.rb +10 -0
- data/tmpsets/set/mod026-bootstrap/self/style_bootstrap_colorpicker.rb +15 -0
- data/tmpsets/set/mod026-bootstrap/self/style_select2.rb +19 -0
- data/tmpsets/set/mod026-bootstrap/self/style_select2_bootstrap.rb +10 -0
- data/tmpsets/set/mod026-bootstrap/type/bootswatch_skin.rb +24 -0
- data/tmpsets/set/mod026-bootstrap/type/customized_bootswatch_skin.rb +130 -0
- data/tmpsets/set/mod026-bootstrap/type/customized_bootswatch_skin/html_views.rb +46 -0
- data/tmpsets/set/mod026-bootstrap/type_plus_right/customized_bootswatch_skin/colors.rb +122 -0
- data/tmpsets/set/mod027-google_analytics/all/google_analytics.rb +48 -0
- data/tmpsets/set/mod028-recaptcha/all/recaptcha.rb +116 -0
- data/tmpsets/set_pattern/100-all.rb +11 -13
- data/tmpsets/set_pattern/101-all_plus.rb +11 -13
- data/tmpsets/set_pattern/102-type.rb +12 -14
- data/tmpsets/set_pattern/103-star.rb +13 -15
- data/tmpsets/set_pattern/104-rstar.rb +13 -15
- data/tmpsets/set_pattern/105-rule.rb +28 -0
- data/tmpsets/set_pattern/106-right.rb +31 -0
- data/tmpsets/set_pattern/107-type_plus_right.rb +40 -0
- data/tmpsets/set_pattern/108-self.rb +30 -0
- metadata +533 -262
- data/lib/card/format/permission.rb +0 -83
- data/lib/card/set/format/wrapper.rb +0 -89
- data/lib/card/view/cache_action.rb +0 -140
- data/lib/card/view/stub.rb +0 -46
- data/lib/card/view/visibility.rb +0 -98
- data/lib/card/view/wrapper.rb +0 -28
- data/mod/machines/lib/javascript/decko.js.coffee +0 -209
- data/mod/machines/lib/javascript/script_card_menu.js.coffee +0 -3
- data/mod/machines/set/self/script_card_menu.rb +0 -1
- data/mod/machines/set/self/script_slot.rb +0 -10
- data/mod/search/template/abstract/03_filter/_filter_input.haml +0 -8
- data/mod/search/template/abstract/03_filter/filter_form.haml +0 -44
- data/tmpsets/set/mod001-admin/self/version.rb +0 -15
- data/tmpsets/set/mod002-core/abstract/code_file.rb +0 -79
- data/tmpsets/set/mod002-core/all/collection.rb +0 -313
- data/tmpsets/set/mod002-core/all/content.rb +0 -69
- data/tmpsets/set/mod002-core/all/erb.rb +0 -18
- data/tmpsets/set/mod002-core/all/event.rb +0 -62
- data/tmpsets/set/mod002-core/all/export.rb +0 -49
- data/tmpsets/set/mod002-core/all/fetch.rb +0 -335
- data/tmpsets/set/mod002-core/all/haml.rb +0 -14
- data/tmpsets/set/mod002-core/all/initialize.rb +0 -42
- data/tmpsets/set/mod002-core/all/location_history.rb +0 -15
- data/tmpsets/set/mod002-core/all/name.rb +0 -282
- data/tmpsets/set/mod002-core/all/name_validations.rb +0 -65
- data/tmpsets/set/mod002-core/all/phases.rb +0 -23
- data/tmpsets/set/mod002-core/all/stages.rb +0 -31
- data/tmpsets/set/mod002-core/all/states.rb +0 -31
- data/tmpsets/set/mod002-core/all/tracked_attributes.rb +0 -78
- data/tmpsets/set/mod002-core/all/trash.rb +0 -113
- data/tmpsets/set/mod002-core/all/utils.rb +0 -62
- data/tmpsets/set/mod002-core/all/view_cache.rb +0 -16
- data/tmpsets/set/mod003-history/all/actions.rb +0 -60
- data/tmpsets/set/mod003-history/all/content_history.rb +0 -168
- data/tmpsets/set/mod003-history/all/history.rb +0 -408
- data/tmpsets/set/mod004-basic_formats/all/all_css.rb +0 -45
- data/tmpsets/set/mod004-basic_formats/all/all_csv.rb +0 -56
- data/tmpsets/set/mod004-basic_formats/all/all_js.rb +0 -13
- data/tmpsets/set/mod004-basic_formats/all/base.rb +0 -155
- data/tmpsets/set/mod004-basic_formats/all/file.rb +0 -16
- data/tmpsets/set/mod004-basic_formats/all/json.rb +0 -76
- data/tmpsets/set/mod004-basic_formats/all/rss.rb +0 -77
- data/tmpsets/set/mod004-basic_formats/all/text.rb +0 -13
- data/tmpsets/set/mod004-basic_formats/self/01_head/javascript.rb +0 -79
- data/tmpsets/set/mod004-basic_formats/self/head.rb +0 -101
- data/tmpsets/set/mod005-pointer/abstract/01_pointer.rb +0 -193
- data/tmpsets/set/mod005-pointer/abstract/01_pointer/edit.rb +0 -224
- data/tmpsets/set/mod005-pointer/abstract/code_pointer.rb +0 -16
- data/tmpsets/set/mod005-pointer/self/script_editors.rb +0 -8
- data/tmpsets/set/mod005-pointer/self/script_mods.rb +0 -8
- data/tmpsets/set/mod005-pointer/self/script_pointer_config.rb +0 -10
- data/tmpsets/set/mod005-pointer/type/pointer.rb +0 -8
- data/tmpsets/set/mod006-ace_editor/abstract/ace_editor.rb +0 -18
- data/tmpsets/set/mod006-ace_editor/self/script_ace.rb +0 -10
- data/tmpsets/set/mod006-ace_editor/self/script_ace_config.rb +0 -12
- data/tmpsets/set/mod007-prosemirror_editor/abstract/prosemirror_editor.rb +0 -14
- data/tmpsets/set/mod007-prosemirror_editor/self/script_prosemirror.rb +0 -10
- data/tmpsets/set/mod007-prosemirror_editor/self/script_prosemirror_config.rb +0 -13
- data/tmpsets/set/mod009-solid_cache/all/solid_cache.rb +0 -21
- data/tmpsets/set/mod009-solid_cache/right/solid_cache.rb +0 -39
- data/tmpsets/set/mod010-basic_types/type/html.rb +0 -26
- data/tmpsets/set/mod010-basic_types/type/plain_text.rb +0 -19
- data/tmpsets/set/mod011-machines/abstract/machine.rb +0 -277
- data/tmpsets/set/mod011-machines/abstract/script.rb +0 -49
- data/tmpsets/set/mod011-machines/all/reset_machines.rb +0 -19
- data/tmpsets/set/mod011-machines/right/machine_cache.rb +0 -18
- data/tmpsets/set/mod011-machines/right/machine_input.rb +0 -10
- data/tmpsets/set/mod011-machines/self/script_card_menu.rb +0 -8
- data/tmpsets/set/mod011-machines/self/script_html5shiv_printshiv.rb +0 -8
- data/tmpsets/set/mod011-machines/self/script_jquery.rb +0 -8
- data/tmpsets/set/mod011-machines/self/script_jquery_helper.rb +0 -16
- data/tmpsets/set/mod011-machines/self/script_slot.rb +0 -14
- data/tmpsets/set/mod011-machines/self/style_bootstrap_compatible.rb +0 -8
- data/tmpsets/set/mod011-machines/self/style_cards.rb +0 -8
- data/tmpsets/set/mod011-machines/self/style_jquery_ui_smoothness.rb +0 -8
- data/tmpsets/set/mod011-machines/type/coffee_script.rb +0 -43
- data/tmpsets/set/mod011-machines/type/css.rb +0 -67
- data/tmpsets/set/mod011-machines/type/java_script.rb +0 -36
- data/tmpsets/set/mod011-machines/type/scss.rb +0 -21
- data/tmpsets/set/mod011-machines/type/skin.rb +0 -13
- data/tmpsets/set/mod012-settings/abstract/permission.rb +0 -119
- data/tmpsets/set/mod012-settings/right/add_help.rb +0 -18
- data/tmpsets/set/mod012-settings/right/comment.rb +0 -8
- data/tmpsets/set/mod012-settings/right/create.rb +0 -8
- data/tmpsets/set/mod012-settings/right/default.rb +0 -14
- data/tmpsets/set/mod012-settings/right/delete.rb +0 -8
- data/tmpsets/set/mod012-settings/right/help.rb +0 -10
- data/tmpsets/set/mod012-settings/right/read.rb +0 -10
- data/tmpsets/set/mod012-settings/right/script.rb +0 -16
- data/tmpsets/set/mod012-settings/right/structure.rb +0 -68
- data/tmpsets/set/mod012-settings/right/style.rb +0 -17
- data/tmpsets/set/mod012-settings/right/update.rb +0 -8
- data/tmpsets/set/mod012-settings/self/accountable.rb +0 -10
- data/tmpsets/set/mod012-settings/self/add_help.rb +0 -9
- data/tmpsets/set/mod012-settings/self/autoname.rb +0 -9
- data/tmpsets/set/mod012-settings/self/captcha.rb +0 -9
- data/tmpsets/set/mod012-settings/self/create.rb +0 -9
- data/tmpsets/set/mod012-settings/self/default.rb +0 -9
- data/tmpsets/set/mod012-settings/self/default_html_view.rb +0 -9
- data/tmpsets/set/mod012-settings/self/delete.rb +0 -9
- data/tmpsets/set/mod012-settings/self/follow_fields.rb +0 -9
- data/tmpsets/set/mod012-settings/self/help.rb +0 -9
- data/tmpsets/set/mod012-settings/self/input.rb +0 -11
- data/tmpsets/set/mod012-settings/self/layout.rb +0 -9
- data/tmpsets/set/mod012-settings/self/on_create.rb +0 -9
- data/tmpsets/set/mod012-settings/self/on_delete.rb +0 -9
- data/tmpsets/set/mod012-settings/self/on_update.rb +0 -9
- data/tmpsets/set/mod012-settings/self/options.rb +0 -11
- data/tmpsets/set/mod012-settings/self/options_label.rb +0 -11
- data/tmpsets/set/mod012-settings/self/read.rb +0 -9
- data/tmpsets/set/mod012-settings/self/recent_settings.rb +0 -10
- data/tmpsets/set/mod012-settings/self/script.rb +0 -9
- data/tmpsets/set/mod012-settings/self/structure.rb +0 -9
- data/tmpsets/set/mod012-settings/self/style.rb +0 -9
- data/tmpsets/set/mod012-settings/self/table_of_contents.rb +0 -9
- data/tmpsets/set/mod012-settings/self/thanks.rb +0 -9
- data/tmpsets/set/mod012-settings/self/update.rb +0 -9
- data/tmpsets/set/mod013-email/all/email_html.rb +0 -11
- data/tmpsets/set/mod013-email/all/email_text.rb +0 -12
- data/tmpsets/set/mod013-email/all/follow.rb +0 -253
- data/tmpsets/set/mod013-email/all/notify.rb +0 -271
- data/tmpsets/set/mod013-email/all/observer.rb +0 -33
- data/tmpsets/set/mod013-email/right/bcc.rb +0 -47
- data/tmpsets/set/mod013-email/right/cc.rb +0 -10
- data/tmpsets/set/mod013-email/right/follow.rb +0 -106
- data/tmpsets/set/mod013-email/right/follow_fields.rb +0 -10
- data/tmpsets/set/mod013-email/right/followers.rb +0 -41
- data/tmpsets/set/mod013-email/right/following.rb +0 -65
- data/tmpsets/set/mod013-email/right/from.rb +0 -10
- data/tmpsets/set/mod013-email/right/html_message.rb +0 -10
- data/tmpsets/set/mod013-email/right/to.rb +0 -10
- data/tmpsets/set/mod013-email/self/always.rb +0 -20
- data/tmpsets/set/mod013-email/self/created.rb +0 -26
- data/tmpsets/set/mod013-email/self/follow.rb +0 -9
- data/tmpsets/set/mod013-email/self/follow_defaults.rb +0 -75
- data/tmpsets/set/mod013-email/self/never.rb +0 -20
- data/tmpsets/set/mod013-email/type/email_template.rb +0 -133
- data/tmpsets/set/mod013-email/type_plus_right/user/follow.rb +0 -180
- data/tmpsets/set/mod015-carrierwave/abstract/attachment/paths.rb +0 -57
- data/tmpsets/set/mod015-carrierwave/type/file.rb +0 -158
- data/tmpsets/set/mod015-carrierwave/type/image.rb +0 -97
- data/tmpsets/set/mod016-standard/all/comment.rb +0 -67
- data/tmpsets/set/mod016-standard/all/error.rb +0 -229
- data/tmpsets/set/mod016-standard/all/links.rb +0 -165
- data/tmpsets/set/mod016-standard/all/rich_html/content.rb +0 -261
- data/tmpsets/set/mod016-standard/all/rich_html/editing.rb +0 -247
- data/tmpsets/set/mod016-standard/all/rich_html/form.rb +0 -298
- data/tmpsets/set/mod016-standard/all/rich_html/header.rb +0 -78
- data/tmpsets/set/mod016-standard/all/rich_html/menu.rb +0 -154
- data/tmpsets/set/mod016-standard/all/rich_html/modal.rb +0 -58
- data/tmpsets/set/mod016-standard/all/rich_html/toolbar.rb +0 -312
- data/tmpsets/set/mod016-standard/all/rich_html/wrapper.rb +0 -191
- data/tmpsets/set/mod016-standard/right/discussion.rb +0 -10
- data/tmpsets/set/mod016-standard/right/when_created.rb +0 -14
- data/tmpsets/set/mod016-standard/right/when_last_edited.rb +0 -14
- data/tmpsets/set/mod016-standard/rstar/rules.rb +0 -107
- data/tmpsets/set/mod016-standard/rstar/rules_editor.rb +0 -371
- data/tmpsets/set/mod016-standard/self/alerts.rb +0 -12
- data/tmpsets/set/mod016-standard/self/codenames.rb +0 -7
- data/tmpsets/set/mod016-standard/self/foot.rb +0 -15
- data/tmpsets/set/mod016-standard/self/navbox.rb +0 -36
- data/tmpsets/set/mod016-standard/self/now.rb +0 -14
- data/tmpsets/set/mod016-standard/self/recent.rb +0 -34
- data/tmpsets/set/mod016-standard/self/search.rb +0 -71
- data/tmpsets/set/mod016-standard/type/cardtype.rb +0 -81
- data/tmpsets/set/mod016-standard/type/date.rb +0 -15
- data/tmpsets/set/mod016-standard/type/layout_type.rb +0 -17
- data/tmpsets/set/mod016-standard/type/listed_by.rb +0 -85
- data/tmpsets/set/mod016-standard/type/number.rb +0 -25
- data/tmpsets/set/mod016-standard/type/phrase.rb +0 -10
- data/tmpsets/set/mod016-standard/type/search_type.rb +0 -339
- data/tmpsets/set/mod016-standard/type/session.rb +0 -42
- data/tmpsets/set/mod016-standard/type/set.rb +0 -371
- data/tmpsets/set/mod016-standard/type/toggle.rb +0 -19
- data/tmpsets/set/mod016-standard/type/uri.rb +0 -18
- data/tmpsets/set/mod017-account/right/account.rb +0 -196
- data/tmpsets/set/mod017-account/right/email.rb +0 -61
- data/tmpsets/set/mod017-account/right/salt.rb +0 -12
- data/tmpsets/set/mod017-account/right/status.rb +0 -16
- data/tmpsets/set/mod017-account/right/token.rb +0 -57
- data/tmpsets/set/mod017-account/self/account_links.rb +0 -72
- data/tmpsets/set/mod017-account/self/signin.rb +0 -165
- data/tmpsets/set/mod017-account/type/signup.rb +0 -175
- data/tmpsets/set/mod017-account/type/user.rb +0 -88
- data/tmpsets/set/mod018-bootstrap/all/bootstrap/helper.rb +0 -236
- data/tmpsets/set/mod018-bootstrap/all/bootstrap/table.rb +0 -68
- data/tmpsets/set/mod018-bootstrap/all/bootstrap/tabs.rb +0 -88
- data/tmpsets/set/mod018-bootstrap/all/bootstrap/wrapper.rb +0 -18
- data/tmpsets/set/mod018-bootstrap/all/rich_bootstrap.rb +0 -13
- data/tmpsets/set/mod018-bootstrap/self/bootstrap_cards.rb +0 -8
- data/tmpsets/set/mod018-bootstrap/self/bootstrap_js.rb +0 -12
- data/tmpsets/set/mod018-bootstrap/self/bootswatch_shared.rb +0 -47
- data/tmpsets/set/mod018-bootstrap/self/script_mods.rb +0 -7
- data/tmpsets/set/mod018-bootstrap/self/smartmenu_css.rb +0 -12
- data/tmpsets/set/mod018-bootstrap/self/smartmenu_js.rb +0 -12
- data/tmpsets/set_pattern/105-right.rb +0 -33
- data/tmpsets/set_pattern/106-type_plus_right.rb +0 -39
- data/tmpsets/set_pattern/107-self.rb +0 -32
@@ -0,0 +1,59 @@
|
|
1
|
+
# -*- encoding : utf-8 -*-
|
2
|
+
class Card; module Set; class Abstract; module Pointer;
|
3
|
+
# Set: Abstract (Pointer, Events)
|
4
|
+
#
|
5
|
+
module Events;
|
6
|
+
extend Card::Set
|
7
|
+
def self.source_location; "/Users/ethan/dev/decko/gem/card/mod/pointer/set/abstract/02_pointer/events.rb"; end
|
8
|
+
event :add_and_drop_items, :prepare_to_validate, on: :save do
|
9
|
+
adds = Env.params["add_item"]
|
10
|
+
drops = Env.params["drop_item"]
|
11
|
+
Array.wrap(adds).each { |i| add_item i } if adds
|
12
|
+
Array.wrap(drops).each { |i| drop_item i } if drops
|
13
|
+
end
|
14
|
+
|
15
|
+
event :insert_item_event, :prepare_to_validate, on: :save, when: :item_to_insert do
|
16
|
+
index = Env.params["item_index"] || 0
|
17
|
+
insert_item index.to_i, item_to_insert
|
18
|
+
end
|
19
|
+
|
20
|
+
def item_to_insert
|
21
|
+
Env.params["insert_item"]
|
22
|
+
end
|
23
|
+
|
24
|
+
# If a card's type and content are updated in the same action, the new module
|
25
|
+
# will override the old module's events and functions. But this event is only
|
26
|
+
# on pointers -- other type cards do not have this event,
|
27
|
+
# Therefore if something is changed from a pointer and its content is changed
|
28
|
+
# in the same action, this event will be run and will treat the content like
|
29
|
+
# it' still pointer content. The "when" clause helps with that (but is a hack)
|
30
|
+
event :standardize_items, :prepare_to_validate,
|
31
|
+
on: :save, changed: :content, when: :still_pointer? do
|
32
|
+
self.content = item_names(context: :raw).map do |name|
|
33
|
+
"[[#{name}]]"
|
34
|
+
end.join "\n"
|
35
|
+
end
|
36
|
+
|
37
|
+
def still_pointer?
|
38
|
+
type_id == Card::PointerID
|
39
|
+
end
|
40
|
+
|
41
|
+
stage_method :changed_item_names do
|
42
|
+
dropped_item_names + added_item_names
|
43
|
+
end
|
44
|
+
|
45
|
+
stage_method :dropped_item_names do
|
46
|
+
old_items = item_names content: db_content_before_act
|
47
|
+
old_items - item_names
|
48
|
+
end
|
49
|
+
|
50
|
+
stage_method :added_item_names do
|
51
|
+
old_items = item_names content: db_content_before_act
|
52
|
+
item_names - old_items
|
53
|
+
end
|
54
|
+
|
55
|
+
stage_method :changed_item_cards do
|
56
|
+
item_cards content: changed_item_names
|
57
|
+
end
|
58
|
+
end;end;end;end;end;
|
59
|
+
# ~~ generated from /Users/ethan/dev/decko/gem/card/mod/pointer/set/abstract/02_pointer/events.rb ~~
|
@@ -0,0 +1,117 @@
|
|
1
|
+
# -*- encoding : utf-8 -*-
|
2
|
+
class Card; module Set; class Abstract; module Pointer;
|
3
|
+
# Set: Abstract (Pointer, HtmlViews)
|
4
|
+
#
|
5
|
+
module HtmlViews;
|
6
|
+
extend Card::Set
|
7
|
+
def self.source_location; "/Users/ethan/dev/decko/gem/card/mod/pointer/set/abstract/02_pointer/html_views.rb"; end
|
8
|
+
include_set Abstract::BsBadge
|
9
|
+
|
10
|
+
module HtmlFormat; parent.send :register_set_format, Card::Format::HtmlFormat, self; extend Card::Set::AbstractFormat
|
11
|
+
view :core, cache: :never do
|
12
|
+
standard_pointer_core
|
13
|
+
end
|
14
|
+
|
15
|
+
view :item_cores, cache: :never do
|
16
|
+
card.known_item_cards.map do |item|
|
17
|
+
nest item, view: :core
|
18
|
+
end.join "\n"
|
19
|
+
end
|
20
|
+
|
21
|
+
def standard_pointer_core
|
22
|
+
with_paging do |paging_args|
|
23
|
+
wrap_with :div, standard_pointer_items(paging_args), class: "pointer-list"
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
def standard_pointer_items paging_args
|
28
|
+
pointer_items paging_args.extract!(:limit, :offset)
|
29
|
+
end
|
30
|
+
|
31
|
+
view :closed_content do
|
32
|
+
item_view = implicit_item_view
|
33
|
+
item_view = item_view == "name" ? "name" : "link"
|
34
|
+
wrap_with :div, class: "pointer-list" do
|
35
|
+
# limit to first 10 items to optimize
|
36
|
+
pointer_items(view: item_view, limit: 10, offset: 0).join ", "
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
def wrap_item rendered, item_view
|
41
|
+
%(<div class="pointer-item item-#{item_view}">#{rendered}</div>)
|
42
|
+
end
|
43
|
+
|
44
|
+
view :editor do
|
45
|
+
_render_hidden_content_field + super()
|
46
|
+
end
|
47
|
+
|
48
|
+
def default_editor
|
49
|
+
:list
|
50
|
+
end
|
51
|
+
|
52
|
+
view :list, cache: :never do
|
53
|
+
list_input
|
54
|
+
end
|
55
|
+
|
56
|
+
def list_input args={}
|
57
|
+
items = items_for_input args[:item_list]
|
58
|
+
extra_class = "pointer-list-ul"
|
59
|
+
ul_classes = classy "pointer-list-editor", extra_class
|
60
|
+
haml :list_input, items: items, ul_classes: ul_classes
|
61
|
+
end
|
62
|
+
|
63
|
+
%i[autocomplete checkbox radio select multiselect].each do |editor_view|
|
64
|
+
view(editor_view) { send "#{editor_view}_input" }
|
65
|
+
end
|
66
|
+
|
67
|
+
def autocomplete_input
|
68
|
+
items = items_for_input
|
69
|
+
haml :autocomplete_input, item: items.first, options_card: options_card_name
|
70
|
+
end
|
71
|
+
|
72
|
+
def checkbox_input
|
73
|
+
haml :checkbox_input
|
74
|
+
end
|
75
|
+
|
76
|
+
def radio_input
|
77
|
+
haml :radio_input
|
78
|
+
end
|
79
|
+
|
80
|
+
def select_input
|
81
|
+
options = { "-- Select --" => "" }.merge card.options_hash
|
82
|
+
select_tag("pointer_select-#{unique_id}",
|
83
|
+
options_for_select(options, card.item_name),
|
84
|
+
class: "pointer-select form-control")
|
85
|
+
end
|
86
|
+
|
87
|
+
def multiselect_input
|
88
|
+
select_tag "pointer_multiselect-#{unique_id}",
|
89
|
+
options_for_select(card.options_hash, card.item_names),
|
90
|
+
multiple: true, class: "pointer-multiselect form-control"
|
91
|
+
end
|
92
|
+
|
93
|
+
def add_item_modal_link
|
94
|
+
modal_link "Add Item",
|
95
|
+
size: :large,
|
96
|
+
class: "btn btn-sm btn-primary _add-item-link",
|
97
|
+
path: { view: :filter_items_modal,
|
98
|
+
item: implicit_item_view,
|
99
|
+
filter_card: filter_card.name,
|
100
|
+
slot_selector: filtered_list_slot_class,
|
101
|
+
item_selector: "_filtered-list-item",
|
102
|
+
slot: { hide: [:modal_footer] },
|
103
|
+
filter: { not_ids: card.item_ids.map(&:to_s).join(",") } }
|
104
|
+
end
|
105
|
+
|
106
|
+
def add_item_overlay_link; end
|
107
|
+
|
108
|
+
private
|
109
|
+
|
110
|
+
# currently only used by :list and :autocomplete. could be generalized?
|
111
|
+
def items_for_input items=nil
|
112
|
+
items ||= card.item_names context: :raw
|
113
|
+
items.empty? ? [""] : items
|
114
|
+
end
|
115
|
+
end
|
116
|
+
end;end;end;end;end;
|
117
|
+
# ~~ generated from /Users/ethan/dev/decko/gem/card/mod/pointer/set/abstract/02_pointer/html_views.rb ~~
|
@@ -0,0 +1,73 @@
|
|
1
|
+
# -*- encoding : utf-8 -*-
|
2
|
+
class Card; module Set; class Abstract; module Pointer;; module HtmlViews;
|
3
|
+
# Set: Abstract (Pointer, HtmlViews, Filter)
|
4
|
+
#
|
5
|
+
module Filter;
|
6
|
+
extend Card::Set
|
7
|
+
def self.source_location; "/Users/ethan/dev/decko/gem/card/mod/pointer/set/abstract/02_pointer/html_views/filter.rb"; end
|
8
|
+
module HtmlFormat; parent.send :register_set_format, Card::Format::HtmlFormat, self; extend Card::Set::AbstractFormat
|
9
|
+
view :filtered_list, unknown: true do
|
10
|
+
filtered_list_input
|
11
|
+
end
|
12
|
+
|
13
|
+
view :filter_items_modal, unknown: true, wrap: :modal do
|
14
|
+
render_filter_items
|
15
|
+
end
|
16
|
+
|
17
|
+
view :filter_items, unknown: true, wrap: :slot do
|
18
|
+
haml :filter_items
|
19
|
+
end
|
20
|
+
|
21
|
+
def filtered_list_input
|
22
|
+
with_nest_mode :normal do
|
23
|
+
class_up "card-slot", filtered_list_slot_class
|
24
|
+
with_class_up "card-slot", filtered_list_slot_class do
|
25
|
+
wrap do
|
26
|
+
haml :filtered_list_input
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
# NOCACHE because params alter view
|
33
|
+
view :add_selected_link, cache: :never, unknown: true do
|
34
|
+
link_to "Add Selected",
|
35
|
+
path: { filter_card: params[:filter_card] },
|
36
|
+
class: "_add-selected slotter _close-modal btn btn-primary disabled",
|
37
|
+
data: { "slot-selector": ".#{params[:slot_selector]}",
|
38
|
+
"item-selector": ".#{params[:item_selector]}",
|
39
|
+
remote: true }
|
40
|
+
end
|
41
|
+
|
42
|
+
def filtered_list_item item_card
|
43
|
+
nest_item item_card do |rendered, item_view|
|
44
|
+
wrap_item rendered, item_view
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
# for override
|
49
|
+
# @return [Card] search card on which filtering is based
|
50
|
+
def filter_card
|
51
|
+
filter_card_from_params || default_filter_card
|
52
|
+
end
|
53
|
+
|
54
|
+
def default_filter_card
|
55
|
+
fcard = card.options_rule_card || Card[:all]
|
56
|
+
return fcard if fcard.respond_to? :wql_hash
|
57
|
+
|
58
|
+
fcard.fetch trait: :referred_to_by, new: {}
|
59
|
+
end
|
60
|
+
|
61
|
+
def filter_card_from_params
|
62
|
+
return unless params[:filter_card]
|
63
|
+
Card.fetch params[:filter_card], new: {}
|
64
|
+
end
|
65
|
+
|
66
|
+
# currently actually used as a class
|
67
|
+
# (because we don't have api to override slot's id)
|
68
|
+
def filtered_list_slot_class
|
69
|
+
@filtered_list_slot_class ||= "filtered-list-#{unique_id}"
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end;end;end;end;end;end;
|
73
|
+
# ~~ generated from /Users/ethan/dev/decko/gem/card/mod/pointer/set/abstract/02_pointer/html_views/filter.rb ~~
|
@@ -0,0 +1,181 @@
|
|
1
|
+
# -*- encoding : utf-8 -*-
|
2
|
+
class Card; module Set; class Abstract; module Pointer;
|
3
|
+
# Set: Abstract (Pointer, ItemApi)
|
4
|
+
#
|
5
|
+
# ~~~~~~~~~~~~ READING ITEMS ~~~~~~~~~~~~
|
6
|
+
|
7
|
+
module ItemApi;
|
8
|
+
extend Card::Set
|
9
|
+
def self.source_location; "/Users/ethan/dev/decko/gem/card/mod/pointer/set/abstract/02_pointer/item_api.rb"; end
|
10
|
+
# While each of the three main methods for returning lists of items can handle arguments,
|
11
|
+
# they are most commonly used without them.
|
12
|
+
|
13
|
+
# @return [Array] list of Card::Name objects
|
14
|
+
# @param args [Hash]
|
15
|
+
# @option args [String] :content override card content
|
16
|
+
# @option args [String, Card::Name, Symbol] :context name in whose context relative items
|
17
|
+
# will be interpreted. For example. +A in context of B is interpreted as B+A
|
18
|
+
# context defaults to pointer card's name. If value is `:raw`, then name is not
|
19
|
+
# contextualized
|
20
|
+
# @option args [String, Integer] :limit max number of cards to return
|
21
|
+
# @option args [String, Integer] :offset begin after the offset-th item
|
22
|
+
def item_names args={}
|
23
|
+
raw_item_strings(args[:content], args[:limit], args[:offset]).map do |item|
|
24
|
+
clean_item_name item, args[:context]
|
25
|
+
end.compact
|
26
|
+
end
|
27
|
+
|
28
|
+
# @return [Array] list of integers (card ids of items)
|
29
|
+
# @param args [Hash] see #item_names
|
30
|
+
def item_ids args={}
|
31
|
+
item_names(args).map { |name| Card.fetch_id name }.compact
|
32
|
+
end
|
33
|
+
|
34
|
+
# @return [Array] list of Card objects
|
35
|
+
# @param args [Hash] see #item_names for additional options
|
36
|
+
# @option args [String] :complete keyword to use in searching among items
|
37
|
+
# @option args [True/False] :known_only if true, return only known cards
|
38
|
+
# @option args [String] :type name of type to be used for unknown cards
|
39
|
+
def item_cards args={}
|
40
|
+
return item_cards_search(args) if args[:complete]
|
41
|
+
return known_item_cards(args) if args[:known_only]
|
42
|
+
all_item_cards args
|
43
|
+
end
|
44
|
+
|
45
|
+
# #item_name, #item_id, and #item_card each return a single item, rather than an array.
|
46
|
+
%i[name id card].each do |obj|
|
47
|
+
define_method "item_#{obj}" do |args={}|
|
48
|
+
send("item_#{obj}s", args.merge(limit: 1)).first
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
# ~~~~~~~~~~~~ ALTERING ITEMS ~~~~~~~~~~~~
|
53
|
+
|
54
|
+
# set card content based on array and save card
|
55
|
+
# @param array [Array] list of strings/names (Cardish)
|
56
|
+
def items= array
|
57
|
+
self.content = ""
|
58
|
+
array.each { |i| self << i }
|
59
|
+
save!
|
60
|
+
end
|
61
|
+
|
62
|
+
# append item to list (does not save)
|
63
|
+
# @param item [Cardish]
|
64
|
+
def << item
|
65
|
+
add_item Card::Name[item]
|
66
|
+
end
|
67
|
+
|
68
|
+
# append item to list (does not save)
|
69
|
+
# @param name [String, Card::Name] item name
|
70
|
+
# @param allow_duplicates [True/False] permit duplicate items (default is False)
|
71
|
+
def add_item name, allow_duplicates=false
|
72
|
+
return if !allow_duplicates && include_item?(name)
|
73
|
+
self.content = "[[#{(item_names << name).reject(&:blank?) * "]]\n[["}]]"
|
74
|
+
end
|
75
|
+
|
76
|
+
# append item to list and save card
|
77
|
+
# @param name [String, Card::Name] item name
|
78
|
+
def add_item! name
|
79
|
+
add_item(name) && save!
|
80
|
+
end
|
81
|
+
|
82
|
+
# remove item from list
|
83
|
+
# @param name [String, Card::Name] item name
|
84
|
+
def drop_item name
|
85
|
+
return unless include_item? name
|
86
|
+
key = name.to_name.key
|
87
|
+
new_names = item_names.reject { |n| n.to_name.key == key }
|
88
|
+
self.content = new_names.empty? ? "" : "[[#{new_names * "]]\n[["}]]"
|
89
|
+
end
|
90
|
+
|
91
|
+
# remove item from list and save card
|
92
|
+
# @param name [String, Card::Name] item name
|
93
|
+
def drop_item! name
|
94
|
+
drop_item name
|
95
|
+
save!
|
96
|
+
end
|
97
|
+
|
98
|
+
# insert item into list at specified location
|
99
|
+
# @param index [Integer] Array index in which to insert item (0 is first)
|
100
|
+
# @param name [String, Card::Name] item name
|
101
|
+
def insert_item index, name
|
102
|
+
new_names = item_names
|
103
|
+
new_names.delete name
|
104
|
+
new_names.insert index, name
|
105
|
+
self.content = new_names.map { |new_name| "[[#{new_name}]]" }.join "\n"
|
106
|
+
end
|
107
|
+
|
108
|
+
# insert item into list at specified location and save
|
109
|
+
# @param index [Integer] Array index in which to insert item (0 is first)
|
110
|
+
# @param name [String, Card::Name] item name
|
111
|
+
def insert_item! index, name
|
112
|
+
insert_item index, name
|
113
|
+
save!
|
114
|
+
end
|
115
|
+
|
116
|
+
# ~~~~~~~~~~~~ READING ITEM HELPERS ~~~~~~~~~~~~
|
117
|
+
|
118
|
+
# Warning: the following methods, while available for use, may be subject to change
|
119
|
+
|
120
|
+
# #item_cards helpers
|
121
|
+
|
122
|
+
def item_cards_search query
|
123
|
+
Card::Query.run query.reverse_merge(referred_to_by: name, limit: 0)
|
124
|
+
end
|
125
|
+
|
126
|
+
def known_item_cards args={}
|
127
|
+
item_names(args).map { |name| Card.fetch name }.compact
|
128
|
+
end
|
129
|
+
|
130
|
+
def all_item_cards args={}
|
131
|
+
item_names(args).map do |name|
|
132
|
+
Card.fetch name, new: new_unknown_item_args(args)
|
133
|
+
end
|
134
|
+
end
|
135
|
+
|
136
|
+
def new_unknown_item_args args
|
137
|
+
itype = args[:type] || item_type
|
138
|
+
itype ? { type: itype } : {}
|
139
|
+
end
|
140
|
+
|
141
|
+
# TODO: support type_code and type_id. (currently type)
|
142
|
+
# uses name, because its most common use is from WQL
|
143
|
+
def item_type
|
144
|
+
opt = options_rule_card
|
145
|
+
# FIXME: need better recursion prevention
|
146
|
+
return if !opt || opt == self
|
147
|
+
opt.item_type
|
148
|
+
end
|
149
|
+
|
150
|
+
# #item_names helpers
|
151
|
+
|
152
|
+
def raw_item_strings content, limit, offset
|
153
|
+
items = all_raw_item_strings content
|
154
|
+
limit = limit.to_i
|
155
|
+
offset = offset.to_i
|
156
|
+
return items unless limit.positive? || offset.positive?
|
157
|
+
items[offset, (limit.zero? ? items.size : limit)] || []
|
158
|
+
end
|
159
|
+
|
160
|
+
def all_raw_item_strings content=nil
|
161
|
+
(content || self.content).to_s.split(/\n+/)
|
162
|
+
end
|
163
|
+
|
164
|
+
private
|
165
|
+
|
166
|
+
def clean_item_name item, context
|
167
|
+
item = strip_item(item).to_name
|
168
|
+
return item if context == :raw
|
169
|
+
context ||= context_card.name
|
170
|
+
item.absolute_name context
|
171
|
+
rescue Card::Error::NotFound
|
172
|
+
# eg for invalid ids or codenames
|
173
|
+
# "Invalid Item: #{item}".to_name
|
174
|
+
nil
|
175
|
+
end
|
176
|
+
|
177
|
+
def strip_item item
|
178
|
+
item.gsub(/\[\[|\]\]/, "").strip
|
179
|
+
end
|
180
|
+
end;end;end;end;end;
|
181
|
+
# ~~ generated from /Users/ethan/dev/decko/gem/card/mod/pointer/set/abstract/02_pointer/item_api.rb ~~
|
@@ -0,0 +1,93 @@
|
|
1
|
+
# -*- encoding : utf-8 -*-
|
2
|
+
class Card; module Set; class Abstract; module Pointer;
|
3
|
+
# Set: Abstract (Pointer, OptionsApi)
|
4
|
+
#
|
5
|
+
# TODO: some of this should be moved to right/options!!
|
6
|
+
module OptionsApi;
|
7
|
+
extend Card::Set
|
8
|
+
def self.source_location; "/Users/ethan/dev/decko/gem/card/mod/pointer/set/abstract/02_pointer/options_api.rb"; end
|
9
|
+
|
10
|
+
def options_hash
|
11
|
+
json_options? ? options_card.parse_content : option_hash_from_names
|
12
|
+
end
|
13
|
+
|
14
|
+
def json_options?
|
15
|
+
options_card&.type_id == Card::JsonID
|
16
|
+
end
|
17
|
+
|
18
|
+
def option_hash_from_names
|
19
|
+
option_names.each_with_object({}) do |name, hash|
|
20
|
+
hash[name] = name
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
def option_names
|
25
|
+
if (selected_options = item_names)
|
26
|
+
(standard_option_names + selected_options).uniq
|
27
|
+
else
|
28
|
+
standard_option_names
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
def option_cards
|
33
|
+
option_names.map do |name|
|
34
|
+
Card.fetch name, new: {}
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
def options_rule_card
|
39
|
+
rule_card :options
|
40
|
+
end
|
41
|
+
|
42
|
+
def standard_option_names
|
43
|
+
if json_options?
|
44
|
+
options_hash.values.map(&:to_name)
|
45
|
+
else
|
46
|
+
option_names_from_items
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
def option_names_from_items
|
51
|
+
o_card = options_card
|
52
|
+
limit = o_card.try(:default_limit).to_i
|
53
|
+
o_card.item_names context: name, limit: limit
|
54
|
+
end
|
55
|
+
|
56
|
+
def options_card
|
57
|
+
options_rule_card || Card[:all]
|
58
|
+
end
|
59
|
+
|
60
|
+
def options_card_name
|
61
|
+
options_rule_card&.name&.url_key || ":all"
|
62
|
+
end
|
63
|
+
|
64
|
+
module Format; parent.send :register_set_format, Card::Format, self; extend Card::Set::AbstractFormat
|
65
|
+
def options_card_name
|
66
|
+
card.options_card_name
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
module HtmlFormat; parent.send :register_set_format, Card::Format::HtmlFormat, self; extend Card::Set::AbstractFormat
|
71
|
+
def option_label option_name, id
|
72
|
+
%(<label for="#{id}">#{option_label_text option_name}</label>)
|
73
|
+
end
|
74
|
+
|
75
|
+
def option_label_text option_name
|
76
|
+
Card.fetch(option_name)&.label || option_name
|
77
|
+
end
|
78
|
+
|
79
|
+
# @param option_type [String] "checkbox" or "radio"
|
80
|
+
def option_description option_type, option_name
|
81
|
+
return "" unless (description = option_description_core(option_name))
|
82
|
+
%(<div class="#{option_type}-option-description">#{description}</div>)
|
83
|
+
end
|
84
|
+
|
85
|
+
def option_description_core option
|
86
|
+
# DISCUSS: "options label" is an obscure rule. still support?
|
87
|
+
desc_name = card.rule(:options_label) || "description"
|
88
|
+
return unless (desc_card = Card[option, desc_name])
|
89
|
+
nest desc_card, { view: :core }, nest_mode: :normal
|
90
|
+
end
|
91
|
+
end
|
92
|
+
end;end;end;end;end;
|
93
|
+
# ~~ generated from /Users/ethan/dev/decko/gem/card/mod/pointer/set/abstract/02_pointer/options_api.rb ~~
|