fanforce-plugin-factory 0.41.0 → 1.6.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/.ruby-version +1 -0
- data/.yardopts +5 -0
- data/.yardopts.rb +1 -0
- data/Gemfile +9 -0
- data/README.md +40 -75
- data/Rakefile +61 -4
- data/fanforce-plugin-factory.gemspec +21 -21
- data/lib/fanforce/plugin_factory.rb +16 -58
- data/lib/fanforce/plugin_factory/Rakefile +51 -0
- data/lib/fanforce/plugin_factory/Routes.rb +33 -0
- data/lib/fanforce/plugin_factory/asset_framework/plugin_factory/_bootstrap.scss +2 -0
- data/lib/fanforce/plugin_factory/asset_framework/plugin_factory/_common.scss +1 -0
- data/lib/fanforce/plugin_factory/asset_framework/plugin_factory/_directives.scss +7 -0
- data/lib/fanforce/plugin_factory/asset_framework/plugin_factory/_font-awesome.scss +1 -0
- data/lib/fanforce/plugin_factory/asset_framework/plugin_factory/_ui-select.scss +3 -0
- data/lib/fanforce/plugin_factory/{assets/lib/common → asset_framework/plugin_factory/bootstrap}/_bootstrap-overrides.scss +2 -0
- data/lib/fanforce/plugin_factory/{assets/lib/vendors/bootstrap/css → asset_framework/plugin_factory/bootstrap}/bootstrap.css +2 -2
- data/lib/fanforce/plugin_factory/{assets/lib/vendors/bootstrap/js → asset_framework/plugin_factory/bootstrap}/bootstrap.js +0 -0
- data/lib/fanforce/plugin_factory/asset_framework/plugin_factory/bootstrap/bootstrap.min.css +7 -0
- data/lib/fanforce/plugin_factory/{assets/lib/vendors/bootstrap/js → asset_framework/plugin_factory/bootstrap}/bootstrap.min.js +0 -0
- data/lib/fanforce/plugin_factory/asset_framework/plugin_factory/bootstrap/glyphicons-halflings-regular.eot +0 -0
- data/lib/fanforce/plugin_factory/asset_framework/plugin_factory/bootstrap/glyphicons-halflings-regular.svg +229 -0
- data/lib/fanforce/plugin_factory/asset_framework/plugin_factory/bootstrap/glyphicons-halflings-regular.ttf +0 -0
- data/lib/fanforce/plugin_factory/asset_framework/plugin_factory/bootstrap/glyphicons-halflings-regular.woff +0 -0
- data/lib/fanforce/plugin_factory/{assets/lib → asset_framework/plugin_factory}/common/_mixins.scss +2 -1
- data/lib/fanforce/plugin_factory/asset_framework/plugin_factory/directives.coffee +1 -0
- data/lib/fanforce/plugin_factory/asset_framework/plugin_factory/directives/error/_error.scss +6 -0
- data/lib/fanforce/plugin_factory/{assets/lib/common/module-error → asset_framework/plugin_factory/directives/error}/arrow-left.png +0 -0
- data/lib/fanforce/plugin_factory/{assets/lib/common/module-error → asset_framework/plugin_factory/directives/error}/icon-error.png +0 -0
- data/lib/fanforce/plugin_factory/asset_framework/plugin_factory/directives/initiative-footer/_initiative-footer.coffee +16 -0
- data/lib/fanforce/plugin_factory/{assets/lib/common/_module-add-initiative-footer.scss → asset_framework/plugin_factory/directives/initiative-footer/_initiative-footer.scss} +4 -1
- data/lib/fanforce/plugin_factory/{assets/lib/common/_module-initiative-searcher.scss → asset_framework/plugin_factory/directives/initiative-searcher/_initiative-searcher.scss} +14 -13
- data/lib/fanforce/plugin_factory/{assets/lib/common/module-initiative-searcher → asset_framework/plugin_factory/directives/initiative-searcher}/icon-search.png +0 -0
- data/lib/fanforce/plugin_factory/{assets/lib/common/module-initiative-searcher → asset_framework/plugin_factory/directives/initiative-searcher}/spinner.gif +0 -0
- data/lib/fanforce/plugin_factory/{assets/lib/common/module-initiative-searcher → asset_framework/plugin_factory/directives/initiative-searcher}/sprite-arrows.png +0 -0
- data/lib/fanforce/plugin_factory/asset_framework/plugin_factory/directives/loading/_loading.coffee +4 -0
- data/lib/fanforce/plugin_factory/asset_framework/plugin_factory/directives/loading/_loading.scss +4 -0
- data/lib/fanforce/plugin_factory/{assets/js/add_source_popup.js → asset_framework/plugin_factory/directives/saving-to-server/_saving-to-server.coffee} +0 -0
- data/lib/fanforce/plugin_factory/asset_framework/plugin_factory/directives/saving-to-server/_saving-to-server.scss +6 -0
- data/lib/fanforce/plugin_factory/{assets/lib/common/module-saving-initiative → asset_framework/plugin_factory/directives/saving-to-server}/spinner.gif +0 -0
- data/lib/fanforce/plugin_factory/asset_framework/plugin_factory/directives/start-arrow/_start-arrow.coffee +8 -0
- data/lib/fanforce/plugin_factory/{assets/lib/common/_module-start-here.scss → asset_framework/plugin_factory/directives/start-arrow/_start-arrow.scss} +5 -4
- data/lib/fanforce/plugin_factory/{assets/lib/common/module-start-here → asset_framework/plugin_factory/directives/start-arrow}/arrow.png +0 -0
- data/lib/fanforce/plugin_factory/{assets/lib/common/_module-video-thumbnail.scss → asset_framework/plugin_factory/directives/video-thumbnail/_video-thumbnail.scss} +4 -4
- data/lib/fanforce/plugin_factory/{assets/lib/common/module-video-thumbnail → asset_framework/plugin_factory/directives/video-thumbnail}/icon-play.png +0 -0
- data/lib/fanforce/plugin_factory/asset_framework/plugin_factory/font-awesome.coffee +1 -0
- data/lib/fanforce/plugin_factory/{assets/lib/vendors/font-awesome/font → asset_framework/plugin_factory/font-awesome}/FontAwesome.otf +0 -0
- data/lib/fanforce/plugin_factory/{assets/lib/vendors/font-awesome/css → asset_framework/plugin_factory/font-awesome}/font-awesome.css +2 -2
- data/lib/fanforce/plugin_factory/{assets/lib/vendors/font-awesome/css → asset_framework/plugin_factory/font-awesome}/font-awesome.min.css +0 -0
- data/lib/fanforce/plugin_factory/{assets/lib/vendors/font-awesome/font → asset_framework/plugin_factory/font-awesome}/fontawesome-webfont.eot +0 -0
- data/lib/fanforce/plugin_factory/{assets/lib/vendors/font-awesome/font → asset_framework/plugin_factory/font-awesome}/fontawesome-webfont.svg +0 -0
- data/lib/fanforce/plugin_factory/{assets/lib/vendors/font-awesome/font → asset_framework/plugin_factory/font-awesome}/fontawesome-webfont.ttf +0 -0
- data/lib/fanforce/plugin_factory/{assets/lib/vendors/font-awesome/font → asset_framework/plugin_factory/font-awesome}/fontawesome-webfont.woff +0 -0
- data/lib/fanforce/plugin_factory/asset_framework/plugin_factory/lib.coffee +1 -0
- data/lib/fanforce/plugin_factory/asset_framework/plugin_factory/lib/ng-focus-blur.js +68 -0
- data/lib/fanforce/plugin_factory/asset_framework/plugin_factory/lib/ng-visible.js +7 -0
- data/lib/fanforce/plugin_factory/asset_framework/plugin_factory/ui-select.coffee +1 -0
- data/lib/fanforce/plugin_factory/asset_framework/plugin_factory/ui-select/select.css +171 -0
- data/lib/fanforce/plugin_factory/asset_framework/plugin_factory/ui-select/select.js +1281 -0
- data/lib/fanforce/plugin_factory/asset_framework/plugin_factory/ui-select/select_override.scss +1 -0
- data/lib/fanforce/plugin_factory/asset_framework/plugin_factory/ui-select/selectize.default.css +443 -0
- data/lib/fanforce/plugin_factory/cli.rb +5 -0
- data/lib/fanforce/plugin_factory/cli/lib/bitbucket.rb +77 -0
- data/lib/fanforce/plugin_factory/cli/lib/bundler.rb +21 -0
- data/lib/fanforce/plugin_factory/cli/lib/env.rb +96 -0
- data/lib/fanforce/plugin_factory/cli/lib/git.rb +59 -0
- data/lib/fanforce/plugin_factory/cli/lib/heroku.rb +94 -0
- data/lib/fanforce/plugin_factory/cli/lib/iron.rb +71 -0
- data/lib/fanforce/plugin_factory/cli/lib/pow.rb +46 -0
- data/lib/fanforce/plugin_factory/cli/lib/scaffolding.rb +74 -0
- data/lib/fanforce/plugin_factory/cli/lib/scaffolding_file.rb +510 -0
- data/lib/fanforce/plugin_factory/cli/lib/uranium.rb +77 -0
- data/lib/fanforce/plugin_factory/cli/lib/utils.rb +57 -0
- data/lib/fanforce/plugin_factory/cli/scripts/config.rb +9 -0
- data/lib/fanforce/plugin_factory/cli/scripts/create.rb +64 -0
- data/lib/fanforce/plugin_factory/cli/scripts/destroy.rb +61 -0
- data/lib/fanforce/plugin_factory/cli/scripts/diff.rb +156 -0
- data/lib/fanforce/plugin_factory/cli/scripts/push.rb +88 -0
- data/lib/fanforce/plugin_factory/cli/scripts/restart.rb +41 -0
- data/lib/fanforce/plugin_factory/cli/scripts/setup.rb +70 -0
- data/lib/fanforce/plugin_factory/cli/scripts/update.rb +132 -0
- data/lib/fanforce/plugin_factory/cli_directory_of_plugins.rb +51 -0
- data/lib/fanforce/plugin_factory/cli_single_plugin.rb +52 -0
- data/lib/fanforce/plugin_factory/controllers/base_controller.rb +15 -0
- data/lib/fanforce/plugin_factory/core_config.rb +94 -0
- data/lib/fanforce/plugin_factory/directive_views/initiative-footer.haml +8 -0
- data/lib/fanforce/plugin_factory/load.rb +7 -0
- data/lib/fanforce/plugin_factory/load_iron_worker.rb +2 -0
- data/lib/fanforce/plugin_factory/load_sprockets.rb +2 -0
- data/lib/fanforce/plugin_factory/plugin.rb +60 -0
- data/lib/fanforce/plugin_factory/scaffolding/._.gitignore.registry +1 -0
- data/lib/fanforce/plugin_factory/scaffolding/._Gemfile.registry +3 -0
- data/lib/fanforce/plugin_factory/scaffolding/._Rakefile.registry +3 -0
- data/lib/fanforce/plugin_factory/scaffolding/._config.json.registry +2 -0
- data/lib/fanforce/plugin_factory/scaffolding/._config.ru.registry +4 -0
- data/lib/fanforce/plugin_factory/scaffolding/._favicon.ico.registry +1 -0
- data/lib/fanforce/plugin_factory/scaffolding/._robots.txt.registry +3 -0
- data/lib/fanforce/plugin_factory/scaffolding/.gitignore +27 -0
- data/lib/fanforce/plugin_factory/scaffolding/Gemfile +9 -0
- data/lib/fanforce/plugin_factory/scaffolding/Rakefile +7 -0
- data/lib/fanforce/plugin_factory/scaffolding/Routes.rb +67 -0
- data/lib/fanforce/plugin_factory/scaffolding/assets/css/._fembedded.scss.registry +4 -0
- data/lib/fanforce/plugin_factory/scaffolding/assets/css/._promotional.scss.registry +4 -0
- data/lib/fanforce/plugin_factory/scaffolding/assets/css/._visitor.scss.registry +4 -0
- data/lib/fanforce/plugin_factory/scaffolding/assets/css/fembedded.scss +24 -0
- data/lib/fanforce/plugin_factory/scaffolding/assets/css/promotional.scss +33 -0
- data/lib/fanforce/plugin_factory/scaffolding/assets/css/visitor.scss +61 -0
- data/lib/fanforce/plugin_factory/scaffolding/assets/img/._icon-16.png.registry +1 -0
- data/lib/fanforce/plugin_factory/scaffolding/assets/img/._icon-32.png.registry +1 -0
- data/lib/fanforce/plugin_factory/scaffolding/assets/img/._icon-42.png.registry +1 -0
- data/lib/fanforce/plugin_factory/scaffolding/assets/img/._marketplace.png.registry +1 -0
- data/lib/fanforce/plugin_factory/{assets → scaffolding/assets}/img/icon-16.png +0 -0
- data/lib/fanforce/plugin_factory/{assets → scaffolding/assets}/img/icon-32.png +0 -0
- data/lib/fanforce/plugin_factory/{assets → scaffolding/assets}/img/icon-42.png +0 -0
- data/lib/fanforce/plugin_factory/scaffolding/assets/img/marketplace.png +0 -0
- data/lib/fanforce/plugin_factory/scaffolding/assets/img/promotional/._fanforce_bg.png.registry +1 -0
- data/lib/fanforce/plugin_factory/scaffolding/assets/img/promotional/._icon-42.png.registry +1 -0
- data/lib/fanforce/plugin_factory/scaffolding/assets/img/promotional/._icon-plus.png.registry +1 -0
- data/lib/fanforce/plugin_factory/{assets/lib → scaffolding/assets/img}/promotional/fanforce_bg.png +0 -0
- data/lib/fanforce/plugin_factory/{assets/lib → scaffolding/assets/img}/promotional/icon-42.png +0 -0
- data/lib/fanforce/plugin_factory/scaffolding/assets/img/promotional/icon-plus.png +0 -0
- data/lib/fanforce/plugin_factory/scaffolding/assets/js/._fembedded-app.coffee.registry +5 -0
- data/lib/fanforce/plugin_factory/scaffolding/assets/js/._fembedded.js.registry +3 -0
- data/lib/fanforce/plugin_factory/scaffolding/assets/js/._promotional.js.registry +3 -0
- data/lib/fanforce/plugin_factory/scaffolding/assets/js/fembedded-app.coffee +11 -0
- data/lib/fanforce/plugin_factory/scaffolding/assets/js/fembedded.js +12 -0
- data/lib/fanforce/plugin_factory/scaffolding/assets/js/lib/._cookie.coffee.registry +3 -0
- data/lib/fanforce/plugin_factory/scaffolding/assets/js/lib/._filters.coffee.registry +3 -0
- data/lib/fanforce/plugin_factory/scaffolding/assets/js/lib/._utils.coffee.registry +3 -0
- data/lib/fanforce/plugin_factory/scaffolding/assets/js/lib/cookie.coffee +24 -0
- data/lib/fanforce/plugin_factory/scaffolding/assets/js/lib/filters.coffee +9 -0
- data/lib/fanforce/plugin_factory/scaffolding/assets/js/lib/utils.coffee +40 -0
- data/lib/fanforce/plugin_factory/scaffolding/assets/js/promotional.js +4 -0
- data/lib/fanforce/plugin_factory/scaffolding/config.json +24 -0
- data/lib/fanforce/plugin_factory/scaffolding/config.ru +8 -0
- data/lib/fanforce/plugin_factory/{public → scaffolding}/favicon.ico +0 -0
- data/lib/fanforce/plugin_factory/scaffolding/layouts/._fembedded.haml.registry +4 -0
- data/lib/fanforce/plugin_factory/scaffolding/layouts/._promotional.haml.registry +2 -0
- data/lib/fanforce/plugin_factory/scaffolding/layouts/._visitor.haml.registry +6 -0
- data/lib/fanforce/plugin_factory/scaffolding/layouts/fembedded.haml +26 -0
- data/lib/fanforce/plugin_factory/{layouts → scaffolding/layouts}/promotional.haml +6 -6
- data/lib/fanforce/plugin_factory/{layouts/engage.haml → scaffolding/layouts/visitor.haml} +10 -7
- data/lib/fanforce/plugin_factory/scaffolding/robots.txt +7 -0
- data/lib/fanforce/plugin_factory/scaffolding/views/._index.haml.registry +3 -0
- data/lib/fanforce/plugin_factory/{views → scaffolding/views}/index.haml +13 -7
- data/lib/fanforce/plugin_factory/sinatra/_load.rb +87 -0
- data/lib/fanforce/plugin_factory/sinatra/error_handling.rb +48 -0
- data/lib/fanforce/plugin_factory/sinatra/helper_routes/com_behavior.rb +19 -0
- data/lib/fanforce/plugin_factory/sinatra/helper_routes/com_broadcaster.rb +7 -0
- data/lib/fanforce/plugin_factory/sinatra/helper_routes/com_connector.rb +11 -0
- data/lib/fanforce/plugin_factory/sinatra/helper_routes/com_identifier.rb +3 -0
- data/lib/fanforce/plugin_factory/sinatra/helper_routes/com_js_widget.rb +8 -0
- data/lib/fanforce/plugin_factory/sinatra/helper_routes/plugin.rb +50 -0
- data/lib/fanforce/plugin_factory/sinatra/helpers/assets.rb +23 -0
- data/lib/fanforce/plugin_factory/sinatra/helpers/css_frameworks.rb +70 -0
- data/lib/fanforce/plugin_factory/sinatra/helpers/fanforce.rb +18 -0
- data/lib/fanforce/plugin_factory/{config → sinatra}/helpers/json.rb +2 -2
- data/lib/fanforce/plugin_factory/sinatra/helpers/ractive.rb +45 -0
- data/lib/fanforce/plugin_factory/sprockets/compiler.rb +5 -11
- data/lib/fanforce/plugin_factory/sprockets/hacks.rb +2 -2
- data/lib/fanforce/plugin_factory/version.rb +2 -2
- metadata +201 -195
- data/.rbenv-gemsets +0 -1
- data/.rbenv-version +0 -1
- data/lib/fanforce/plugin_factory.rake +0 -72
- data/lib/fanforce/plugin_factory/_init_sinatra.rb +0 -54
- data/lib/fanforce/plugin_factory/assets/css/add_edit_initiative.scss +0 -1
- data/lib/fanforce/plugin_factory/assets/css/add_source.scss +0 -1
- data/lib/fanforce/plugin_factory/assets/css/convert_pending_initiative.scss +0 -1
- data/lib/fanforce/plugin_factory/assets/css/engage.scss +0 -1
- data/lib/fanforce/plugin_factory/assets/css/new_message.scss +0 -1
- data/lib/fanforce/plugin_factory/assets/css/promotional.scss +0 -1
- data/lib/fanforce/plugin_factory/assets/css/source_details.scss +0 -1
- data/lib/fanforce/plugin_factory/assets/js/add_edit_initiative.js +0 -1
- data/lib/fanforce/plugin_factory/assets/js/add_source.js +0 -1
- data/lib/fanforce/plugin_factory/assets/js/convert_pending_initiative.js +0 -1
- data/lib/fanforce/plugin_factory/assets/js/engage.js +0 -1
- data/lib/fanforce/plugin_factory/assets/js/new_message.js +0 -1
- data/lib/fanforce/plugin_factory/assets/js/promotional.js +0 -2
- data/lib/fanforce/plugin_factory/assets/js/source_details.js +0 -0
- data/lib/fanforce/plugin_factory/assets/lib/common/_module-error.scss +0 -11
- data/lib/fanforce/plugin_factory/assets/lib/common/_module-page-loading.scss +0 -1
- data/lib/fanforce/plugin_factory/assets/lib/common/_module-saving-initiative.scss +0 -6
- data/lib/fanforce/plugin_factory/assets/lib/common/_tags.scss +0 -1
- data/lib/fanforce/plugin_factory/assets/lib/common/_variables.scss +0 -27
- data/lib/fanforce/plugin_factory/assets/lib/common/broadcaster-divider-arrow.png +0 -0
- data/lib/fanforce/plugin_factory/assets/lib/common/icons/dropdown-arrow.png +0 -0
- data/lib/fanforce/plugin_factory/assets/lib/common/icons/initiative.png +0 -0
- data/lib/fanforce/plugin_factory/assets/lib/common/layouts/_add_edit_initiative.scss +0 -27
- data/lib/fanforce/plugin_factory/assets/lib/common/layouts/_add_source.scss +0 -18
- data/lib/fanforce/plugin_factory/assets/lib/common/layouts/_convert_pending_initiative.scss +0 -27
- data/lib/fanforce/plugin_factory/assets/lib/common/layouts/_engage.scss +0 -78
- data/lib/fanforce/plugin_factory/assets/lib/common/layouts/_new_message.scss +0 -24
- data/lib/fanforce/plugin_factory/assets/lib/common/layouts/_promotional.scss +0 -27
- data/lib/fanforce/plugin_factory/assets/lib/common/layouts/_source_details.scss +0 -17
- data/lib/fanforce/plugin_factory/assets/lib/common/layouts/add_edit_initiative.js +0 -6
- data/lib/fanforce/plugin_factory/assets/lib/common/layouts/add_source.js +0 -6
- data/lib/fanforce/plugin_factory/assets/lib/common/layouts/convert_pending_initiative.js +0 -6
- data/lib/fanforce/plugin_factory/assets/lib/common/layouts/engage.js +0 -0
- data/lib/fanforce/plugin_factory/assets/lib/common/layouts/new_message.js +0 -5
- data/lib/fanforce/plugin_factory/assets/lib/common/layouts/promotional.js +0 -1
- data/lib/fanforce/plugin_factory/assets/lib/common/layouts/source_details.js +0 -5
- data/lib/fanforce/plugin_factory/assets/lib/promotional/icon-behavior.png +0 -0
- data/lib/fanforce/plugin_factory/assets/lib/promotional/icon-broadcaster.png +0 -0
- data/lib/fanforce/plugin_factory/assets/lib/promotional/icon-data-connector.png +0 -0
- data/lib/fanforce/plugin_factory/assets/lib/promotional/icon-data-processor.png +0 -0
- data/lib/fanforce/plugin_factory/assets/lib/promotional/icon-identifier.png +0 -0
- data/lib/fanforce/plugin_factory/assets/lib/vendors/bootstrap-datepicker/datepicker.css +0 -7
- data/lib/fanforce/plugin_factory/assets/lib/vendors/bootstrap-datepicker/datepicker.js +0 -454
- data/lib/fanforce/plugin_factory/assets/lib/vendors/bootstrap-timepicker/timepicker.css +0 -82
- data/lib/fanforce/plugin_factory/assets/lib/vendors/bootstrap-timepicker/timepicker.js +0 -803
- data/lib/fanforce/plugin_factory/assets/lib/vendors/bootstrap/css/bootstrap.min.css +0 -7
- data/lib/fanforce/plugin_factory/assets/lib/vendors/bootstrap/img/glyphicons-halflings-regular.eot +0 -0
- data/lib/fanforce/plugin_factory/assets/lib/vendors/bootstrap/img/glyphicons-halflings-regular.svg +0 -0
- data/lib/fanforce/plugin_factory/assets/lib/vendors/bootstrap/img/glyphicons-halflings-regular.ttf +0 -0
- data/lib/fanforce/plugin_factory/assets/lib/vendors/bootstrap/img/glyphicons-halflings-regular.woff +0 -0
- data/lib/fanforce/plugin_factory/assets/lib/vendors/chosen/_chosen_override.scss +0 -6
- data/lib/fanforce/plugin_factory/assets/lib/vendors/chosen/chosen-sprite.png +0 -0
- data/lib/fanforce/plugin_factory/assets/lib/vendors/chosen/chosen-sprite@2x.png +0 -0
- data/lib/fanforce/plugin_factory/assets/lib/vendors/chosen/chosen.jquery.js +0 -1166
- data/lib/fanforce/plugin_factory/assets/lib/vendors/chosen/chosen.scss +0 -434
- data/lib/fanforce/plugin_factory/assets/lib/vendors/jquery/jquery-1.10.2.js +0 -9789
- data/lib/fanforce/plugin_factory/assets/lib/vendors/jquery/jquery.inputHint.js +0 -154
- data/lib/fanforce/plugin_factory/assets/lib/vendors/jquery/jquery.tmpl.debug.js +0 -484
- data/lib/fanforce/plugin_factory/assets/lib/vendors/knockout/knockout.custom-handlers.coffee +0 -155
- data/lib/fanforce/plugin_factory/assets/lib/vendors/knockout/knockout.debug.js +0 -4469
- data/lib/fanforce/plugin_factory/assets/lib/vendors/knockout/knockout.min.js +0 -96
- data/lib/fanforce/plugin_factory/assets/lib/vendors/select2/_select2_override.scss +0 -47
- data/lib/fanforce/plugin_factory/assets/lib/vendors/select2/select2-spinner.gif +0 -0
- data/lib/fanforce/plugin_factory/assets/lib/vendors/select2/select2.png +0 -0
- data/lib/fanforce/plugin_factory/assets/lib/vendors/select2/select2.scss +0 -617
- data/lib/fanforce/plugin_factory/assets/lib/vendors/select2/select2_modified.js +0 -3225
- data/lib/fanforce/plugin_factory/assets/lib/vendors/select2/select2x2.png +0 -0
- data/lib/fanforce/plugin_factory/assets/lib/vendors/underscore/underscore.debug.js +0 -999
- data/lib/fanforce/plugin_factory/config/_error_handling.rb +0 -27
- data/lib/fanforce/plugin_factory/config/core_config.rb +0 -92
- data/lib/fanforce/plugin_factory/config/helpers/assets.rb +0 -72
- data/lib/fanforce/plugin_factory/config/helpers/fanforce.rb +0 -19
- data/lib/fanforce/plugin_factory/layouts/add_edit_initiative.haml +0 -19
- data/lib/fanforce/plugin_factory/layouts/add_source.haml +0 -19
- data/lib/fanforce/plugin_factory/layouts/convert_pending_initiative.haml +0 -19
- data/lib/fanforce/plugin_factory/layouts/new_message.haml +0 -19
- data/lib/fanforce/plugin_factory/layouts/source_details.haml +0 -19
- data/lib/fanforce/plugin_factory/public/robots.txt +0 -2
- data/lib/fanforce/plugin_factory/routes.rb +0 -48
- data/lib/fanforce/plugin_factory/routes_behavior.rb +0 -34
- data/lib/fanforce/plugin_factory/routes_broadcaster.rb +0 -9
- data/lib/fanforce/plugin_factory/routes_data_connector.rb +0 -21
- data/lib/fanforce/plugin_factory/routes_identifier.rb +0 -3
- data/lib/fanforce/plugin_factory/views/add_initiative.haml +0 -1
- data/lib/fanforce/plugin_factory/views/add_source.haml +0 -1
- data/lib/fanforce/plugin_factory/views/close_popup.haml +0 -8
- data/lib/fanforce/plugin_factory/views/convert_pending_initiative.haml +0 -1
- data/lib/fanforce/plugin_factory/views/edit_initiative.haml +0 -1
- data/lib/fanforce/plugin_factory/views/engage.haml +0 -1
- data/lib/fanforce/plugin_factory/views/new_message.haml +0 -1
- data/lib/fanforce/plugin_factory/views/source_details.haml +0 -1
- data/lib/fanforce/plugin_factory/views/widget_tmpls.haml +0 -1
- data/lib/fanforce/plugin_factory_workers.rb +0 -2
@@ -0,0 +1,8 @@
|
|
1
|
+
.footer
|
2
|
+
%label Save initiative as...
|
3
|
+
.input-wrapper(onclick='$(this).find("input").focus()')
|
4
|
+
.prefix {{prefix}}
|
5
|
+
%input.form-control.input-sm(type='text' ng-disabled='is_disabled' ng-model='initiative_name')
|
6
|
+
%button.btn.btn-sm.btn-primary(ng-click='save()' ng-disabled='is_disabled')
|
7
|
+
%i.icon-plus.icon-white
|
8
|
+
Create
|
@@ -0,0 +1,60 @@
|
|
1
|
+
require 'redis'
|
2
|
+
require 'fileutils'
|
3
|
+
require 'rack/jsonr'
|
4
|
+
require 'sinatra/base'
|
5
|
+
require 'active_support/all'
|
6
|
+
require 'fanforce/api'
|
7
|
+
require 'fanforce/plugin_worker'
|
8
|
+
|
9
|
+
class Fanforce::Plugin
|
10
|
+
require_relative 'core_config'
|
11
|
+
|
12
|
+
@@loaded = nil
|
13
|
+
@@config = nil
|
14
|
+
|
15
|
+
# Only one instance is allowed to initialize, and the resulting instance is stored in Fanforce::Plugin.
|
16
|
+
# @param base_dir [String] base dir of plugin
|
17
|
+
# @param loader_filename [String] either config.ru or Rakefile
|
18
|
+
# @return [Fanforce::Plugin]
|
19
|
+
def self.load(base_dir)
|
20
|
+
@@loaded ? (raise 'Only one instance of Fanforce::PluginFactory can be loaded per process') : @@loaded = true
|
21
|
+
@@config = CoreConfig.new(base_dir)
|
22
|
+
return self
|
23
|
+
end
|
24
|
+
|
25
|
+
def self.plugin_id
|
26
|
+
@@config._id
|
27
|
+
end
|
28
|
+
def self._id; plugin_id; end
|
29
|
+
|
30
|
+
def self.config(&block)
|
31
|
+
block ? block.call(@@config) : @@config
|
32
|
+
end
|
33
|
+
|
34
|
+
def self.base_dir
|
35
|
+
@@config.base_dir
|
36
|
+
end
|
37
|
+
|
38
|
+
def self.is_bugsnag_enabled?
|
39
|
+
@@config.is_bugsnag_enabled
|
40
|
+
end
|
41
|
+
|
42
|
+
def self.redis
|
43
|
+
@@redis ||= ::Redis.new(url: @@config.redis_url)
|
44
|
+
end
|
45
|
+
|
46
|
+
######################################################################################################################
|
47
|
+
|
48
|
+
# Method for use in config.ru files (i.e., run Fanforce::Plugin)
|
49
|
+
def self.call(env)
|
50
|
+
if ENV['RACK_ENV'] == 'development' and env['PATH_INFO'] =~ /^\/assets\//
|
51
|
+
env['PATH_INFO'] = env['PATH_INFO'].gsub(/^\/assets/, '')
|
52
|
+
sprockets = SprocketsCompiler.setup(base_dir)
|
53
|
+
return sprockets.index.call(env)
|
54
|
+
end
|
55
|
+
require_relative 'sinatra/_load'
|
56
|
+
request = Rack::Request.new(env)
|
57
|
+
Rack::JSONR.intercept_method_override(env, request, request.params, :all)
|
58
|
+
Sinatra.new.call(env)
|
59
|
+
end
|
60
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
fanforce-plugin-factory-1.6.0:{"ADD": ["*.gem", "*.rbc", ".bundle", ".config", "coverage", "InstalledFiles", "lib/bundler/man", "pkg", "rdoc", "spec/reports", "test/tmp", "test/version_tmp", "tmp", ".idea/", ".sass-cache/", ".DS_STORE", ".powenv", ".pluginenv", ".widgetenv", ".*env.rb", ".yardoc", "_yardoc", "doc/", ".pluginenv", ".env/"]}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
fanforce-plugin-factory-1.6.0:{"ADD": {"_id": null, "name": null, "description": null, "callback_urls": {"install": "http://{{PLUGIN_DOMAIN}}/install", "uninstall": "http://{{PLUGIN_DOMAIN}}/uninstall"}, "fanforce_version_dependency": "1.5", "created_with_plugin_factory_version": null}}
|
2
|
+
fanforce-plugin-factory-1.6.0:{"OPT": {"public_urls": {}, "com_behaviors": [], "com_broadcasters": [], "com_connectors": [], "com_js_finders": [], "com_js_trackers": [], "iron_workers": []}}
|
@@ -0,0 +1,4 @@
|
|
1
|
+
fanforce-plugin-factory-1.6.0:caed161fa223c1350d5af2ad35473b0e70038655
|
2
|
+
fanforce-plugin-factory-1.6.0:76016405e6284edb561d1e174d1ef8033461df64
|
3
|
+
fanforce-plugin-factory-1.6.0:a9286ef7cb6e5c691e6d147cbf264262ee196837
|
4
|
+
fanforce-plugin-factory-1.6.0:621e2a7626b0da72464346b506a47ef012912e23
|
@@ -0,0 +1 @@
|
|
1
|
+
fanforce-plugin-factory-1.6.0:11e7043a9066756655711247c28736cf4b5ca91a
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# PluginFactoryScaffolding : ITEMS
|
2
|
+
########################################################################################################################
|
3
|
+
*.gem
|
4
|
+
*.rbc
|
5
|
+
.bundle
|
6
|
+
.config
|
7
|
+
coverage
|
8
|
+
InstalledFiles
|
9
|
+
lib/bundler/man
|
10
|
+
pkg
|
11
|
+
rdoc
|
12
|
+
spec/reports
|
13
|
+
test/tmp
|
14
|
+
test/version_tmp
|
15
|
+
tmp
|
16
|
+
.idea/
|
17
|
+
.sass-cache/
|
18
|
+
.DS_STORE
|
19
|
+
.powenv
|
20
|
+
.pluginenv
|
21
|
+
.widgetenv
|
22
|
+
.*env.rb
|
23
|
+
.yardoc
|
24
|
+
_yardoc
|
25
|
+
doc/
|
26
|
+
.pluginenv
|
27
|
+
.env/
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# PluginFactoryScaffolding : PARTIAL
|
2
|
+
########################################################################################################################
|
3
|
+
|
4
|
+
source 'https://rubygems.org'
|
5
|
+
ruby '1.9.3'
|
6
|
+
|
7
|
+
gem FANFORCE-PLUGIN-FACTORY
|
8
|
+
|
9
|
+
# END PARTIAL ##########################################################################################################
|
@@ -0,0 +1,7 @@
|
|
1
|
+
# PluginFactoryScaffolding : PARTIAL
|
2
|
+
########################################################################################################################
|
3
|
+
|
4
|
+
require 'bundler'; Bundler.setup
|
5
|
+
require 'fanforce/plugin_factory'
|
6
|
+
|
7
|
+
# END PARTIAL ##########################################################################################################
|
@@ -0,0 +1,67 @@
|
|
1
|
+
# PluginFactoryScaffolding : SKIPPED
|
2
|
+
########################################################################################################################
|
3
|
+
|
4
|
+
class Plugin::Sinatra
|
5
|
+
|
6
|
+
###################################################################################################################### # PLUGIN
|
7
|
+
|
8
|
+
get '/ping' do route_ping_callback end
|
9
|
+
post '/install' do route_install_callback end
|
10
|
+
post '/uninstall' do route_uninstall_callback end
|
11
|
+
|
12
|
+
static '/' do route_index_ui end
|
13
|
+
|
14
|
+
#static '/config.html' do route_config_ui end
|
15
|
+
#static '/close_popup.html' do route_close_popup_ui end
|
16
|
+
|
17
|
+
######################################################################################################################
|
18
|
+
# CONNECTOR
|
19
|
+
|
20
|
+
#static '/:com_connector_shortid/add_source.html', [] do route_add_source_ui end
|
21
|
+
#static '/:com_connector_shortid/source_details.html', [] do route_source_details_ui end
|
22
|
+
|
23
|
+
######################################################################################################################
|
24
|
+
# PROCESSOR
|
25
|
+
|
26
|
+
|
27
|
+
######################################################################################################################
|
28
|
+
# BROADCASTER
|
29
|
+
|
30
|
+
#static '/:com_behavior_shortid/new_message.html', [] do route_new_message_ui end
|
31
|
+
|
32
|
+
######################################################################################################################
|
33
|
+
# IDENTIFIER
|
34
|
+
|
35
|
+
|
36
|
+
######################################################################################################################
|
37
|
+
# BEHAVIOR
|
38
|
+
|
39
|
+
#static '/:com_behavior_shortid/add_initiative.html', [] do route_add_initiative_ui end
|
40
|
+
#static '/:com_behavior_shortid/convert_initiative.html', [] do route_convert_initiative_ui end
|
41
|
+
#static '/:com_behavior_shortid/edit_initiative.html', [] do route_edit_initiative_ui end
|
42
|
+
|
43
|
+
#post '/:com_behavior_shortid/autocreate_initiative' do status 404 end
|
44
|
+
#post '/:com_behavior_shortid/archive_initiative' do route_archive_initiative_callback end
|
45
|
+
#post '/:com_behavior_shortid/destroy_initiative' do route_destroy_initiative_callback end
|
46
|
+
|
47
|
+
######################################################################################################################
|
48
|
+
# JS ENGAGER
|
49
|
+
|
50
|
+
|
51
|
+
######################################################################################################################
|
52
|
+
# JS WIDGET
|
53
|
+
|
54
|
+
#static '/widget_templates' do route_widget_templates end
|
55
|
+
|
56
|
+
######################################################################################################################
|
57
|
+
# JS FINDER
|
58
|
+
|
59
|
+
|
60
|
+
######################################################################################################################
|
61
|
+
# VISITOR
|
62
|
+
|
63
|
+
#static '/:organization_slug/:com_behavior_shortid/:initiative_id', :engagement do route_visitor_page_ui(:engagement) end
|
64
|
+
|
65
|
+
######################################################################################################################
|
66
|
+
|
67
|
+
end
|
@@ -0,0 +1,4 @@
|
|
1
|
+
fanforce-plugin-factory-1.6.0:90e4bd9c4abaeabd9f44b29bec97f76f8149054b
|
2
|
+
fanforce-plugin-factory-1.6.0:290a0a53557bf6151cb9db03bd91e4ff75888ef1
|
3
|
+
fanforce-plugin-factory-1.6.0:4bbddc05c99b42b72cc9b71036b1540db02b7842
|
4
|
+
fanforce-plugin-factory-1.6.0:3100df670df8f5fb23b7e9fce2653228db080841
|
@@ -0,0 +1,4 @@
|
|
1
|
+
fanforce-plugin-factory-1.6.0:cd006c446e288f6eba688bc01ef601981e6b6326
|
2
|
+
fanforce-plugin-factory-1.6.0:1c4d1c57a8b97a2ea0c5fc4d321b94a160f0469b
|
3
|
+
fanforce-plugin-factory-1.6.0:a1fadf99e03856d8a8b7b164225be2be9020a532
|
4
|
+
fanforce-plugin-factory-1.6.0:839c564025c5758af336b26e8347d26c772ad027
|
@@ -0,0 +1,4 @@
|
|
1
|
+
fanforce-plugin-factory-1.6.0:92bc47f80382ad2123eaf5eb4b1ab17ab60f63ef
|
2
|
+
fanforce-plugin-factory-1.6.0:346d7c19f0887e96ffd2783ef174af6ff147eb84
|
3
|
+
fanforce-plugin-factory-1.6.0:af90492fbf4ca65bce0f8f783052f78749da87b7
|
4
|
+
fanforce-plugin-factory-1.6.0:37e0580912668d3ab8f75b1af5d6ce8e90a38687
|
@@ -0,0 +1,24 @@
|
|
1
|
+
// PluginFactoryScaffolding : PARTIAL
|
2
|
+
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
3
|
+
|
4
|
+
@import 'compass/css3';
|
5
|
+
@import 'compass/utilities';
|
6
|
+
|
7
|
+
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
8
|
+
|
9
|
+
@import 'plugin_factory/bootstrap';
|
10
|
+
@import 'plugin_factory/font-awesome';
|
11
|
+
@import 'plugin_factory/common';
|
12
|
+
@import 'plugin_factory/ui-select';
|
13
|
+
@import 'plugin_factory/directives';
|
14
|
+
|
15
|
+
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
16
|
+
|
17
|
+
html.fembedded-layout {
|
18
|
+
body {
|
19
|
+
overflow: hidden;
|
20
|
+
background: #F4F8FC;
|
21
|
+
}
|
22
|
+
}
|
23
|
+
|
24
|
+
// END PARTIAL /////////////////////////////////////////////////////////////////////////////////////////////////////////
|
@@ -0,0 +1,33 @@
|
|
1
|
+
// PluginFactoryScaffolding : PARTIAL
|
2
|
+
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
3
|
+
|
4
|
+
@import 'compass/css3';
|
5
|
+
@import 'compass/utilities';
|
6
|
+
|
7
|
+
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
8
|
+
|
9
|
+
@import 'plugin_factory/bootstrap';
|
10
|
+
@import 'plugin_factory/font-awesome';
|
11
|
+
@import 'plugin_factory/common';
|
12
|
+
|
13
|
+
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
14
|
+
|
15
|
+
html.promotional-layout {
|
16
|
+
body { background:#f6f8fa url(/assets/img/promotional/fanforce_bg.png) fixed; text-align: center; text-shadow: #ffffff 1px 1px 0; }
|
17
|
+
.loading { color: #8f9ba7; }
|
18
|
+
.loading, .loaded { padding-top: 85px; }
|
19
|
+
|
20
|
+
.header-icons { padding: 20px 0 30px;
|
21
|
+
img { margin: 0 5px; }
|
22
|
+
}
|
23
|
+
|
24
|
+
.about-box { @include box-shadow(0 1px 0 #ffffff inset, 0 1px 0 #ffffff); margin:125px auto 50px; border-top: 1px solid #b8c6d3; border-bottom: 1px solid #b8c6d3; width: 80%; padding: 35px 0 35px 45px; overflow: hidden;
|
25
|
+
.about { width: 50%; @include box-sizing(border-box); padding-right:35px; min-width:300px; text-align: left; float:left; line-height:1.5em;
|
26
|
+
.fanforce {}
|
27
|
+
.developer {}
|
28
|
+
}
|
29
|
+
}
|
30
|
+
|
31
|
+
}
|
32
|
+
|
33
|
+
// END PARTIAL /////////////////////////////////////////////////////////////////////////////////////////////////////////
|
@@ -0,0 +1,61 @@
|
|
1
|
+
// PluginFactoryScaffolding : PARTIAL
|
2
|
+
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
3
|
+
|
4
|
+
@import 'compass/css3';
|
5
|
+
@import "compass/layout/sticky-footer";
|
6
|
+
@import 'compass/utilities';
|
7
|
+
|
8
|
+
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
9
|
+
|
10
|
+
@import 'plugin_factory/bootstrap';
|
11
|
+
@import 'plugin_factory/common';
|
12
|
+
|
13
|
+
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
14
|
+
|
15
|
+
a { text-decoration:none; color:#1861a8;
|
16
|
+
&:hover { text-decoration:underline; }
|
17
|
+
}
|
18
|
+
strong, .strong { font-weight:bold; }
|
19
|
+
emphasis, .emphasis { font-style:italic; }
|
20
|
+
|
21
|
+
ul { list-style-type: square; list-style-position:outside; padding:0; margin-left:0; line-height:1.5em;
|
22
|
+
li { margin-top:5px; margin-left:1em; }
|
23
|
+
}
|
24
|
+
|
25
|
+
ol { list-style-type:decimal; list-style-position:outside; padding:0; margin-left:0; line-height:1.5em;
|
26
|
+
li { margin-top:5px; margin-left:1.5em; }
|
27
|
+
}
|
28
|
+
|
29
|
+
pre { font-family:"Courier New", Courier, monospace, sans-serif; color: #555; line-height: 1.6em; }
|
30
|
+
|
31
|
+
.hide { display:none !important; }
|
32
|
+
|
33
|
+
html { height:100%; }
|
34
|
+
body { height: 100%; background-color:#292a2e; @include ff-gradient(#26262a,#2b2d31); text-align:center; margin:0; font-family:'Helvetica', Arial, sans-serif; font-size:12px; line-height:1.5em;
|
35
|
+
@include sticky-footer(40px, ".lyt-root", ".lyt-root-footer", ".lyt-footer");
|
36
|
+
|
37
|
+
.lyt-root { @include ff-gradient(#26262a,#2b2d31); }
|
38
|
+
.lyt-header { min-height:80px;
|
39
|
+
.hello { background: #2d2d31; height:40px; line-height: 44px; text-align: right; border-bottom:1px solid #000000; @include box-shadow(#343438 0 1px 0);
|
40
|
+
.hello-wrapper { max-width: 960px; margin:0 auto; }
|
41
|
+
.greeting { color: #858789; font-style: italic; padding-right:10px; font-weight: 100; }
|
42
|
+
a { font-weight: bold; color: #aeb2b4; }
|
43
|
+
}
|
44
|
+
.logo { border-bottom:1px solid #000000; @include box-shadow(#343438 0 1px 0); background-position: center center; background-repeat:no-repeat;
|
45
|
+
img { margin-top:18px; }
|
46
|
+
}
|
47
|
+
}
|
48
|
+
.lyt-footer { color:#565d65; font-size:10px; line-height:40px; border-top:1px solid #343438; @include box-shadow(#000000 0 -1px 0);
|
49
|
+
a { color:#565d65;
|
50
|
+
&:hover { color:#747d88; }
|
51
|
+
}
|
52
|
+
}
|
53
|
+
|
54
|
+
// layout-specific components
|
55
|
+
.ff-widget { display:inline-block; @include box-shadow(#000000 2px 2px 2px); border:10px solid #ffffff; @include border-radius(3px); margin:50px 0 50px; color: #444444;
|
56
|
+
.loading { line-height: 100px; }
|
57
|
+
}
|
58
|
+
}
|
59
|
+
|
60
|
+
// END PARTIAL /////////////////////////////////////////////////////////////////////////////////////////////////////////
|
61
|
+
|
@@ -0,0 +1 @@
|
|
1
|
+
fanforce-plugin-factory-1.6.0:2c4a41c23733786ba4c196a9fea72629d3954324
|
@@ -0,0 +1 @@
|
|
1
|
+
fanforce-plugin-factory-1.6.0:0beb56b727da2e9c51fdc26807ec7a3639006ea0
|
@@ -0,0 +1 @@
|
|
1
|
+
fanforce-plugin-factory-1.6.0:5b9b715b154cf49ab66d18414d02d7b3dbc981cf
|
@@ -0,0 +1 @@
|
|
1
|
+
fanforce-plugin-factory-1.6.0:25352f7963722a800dd1f8dbbe14d4942f2f4383
|
File without changes
|
File without changes
|
File without changes
|
Binary file
|
data/lib/fanforce/plugin_factory/scaffolding/assets/img/promotional/._fanforce_bg.png.registry
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
fanforce-plugin-factory-1.6.0:80bb437f5177d8481ea4891ae3b699b933130cb0
|
@@ -0,0 +1 @@
|
|
1
|
+
fanforce-plugin-factory-1.6.0:5b9b715b154cf49ab66d18414d02d7b3dbc981cf
|
@@ -0,0 +1 @@
|
|
1
|
+
fanforce-plugin-factory-1.6.0:e5285efa7c82a083ed349f1dbe6c34ba37a6689d
|
data/lib/fanforce/plugin_factory/{assets/lib → scaffolding/assets/img}/promotional/fanforce_bg.png
RENAMED
File without changes
|
data/lib/fanforce/plugin_factory/{assets/lib → scaffolding/assets/img}/promotional/icon-42.png
RENAMED
File without changes
|
@@ -0,0 +1,5 @@
|
|
1
|
+
fanforce-plugin-factory-1.6.0:6448e6a38da910d557be37ed6f2ccbd9e56e6842
|
2
|
+
fanforce-plugin-factory-1.6.0:4ec155f1fcbc67b0d55d7c61049d603892113a84
|
3
|
+
fanforce-plugin-factory-1.6.0:9d77c7fc8a6eecbca57c28b2ab272ea3d23caf1d
|
4
|
+
fanforce-plugin-factory-1.6.0:40e66e08737b83276f97d332edb075c5f2e1bf9d
|
5
|
+
fanforce-plugin-factory-1.6.0:281c679e36c2ddd26c3242d48223d379c9b1ff87
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# PluginFactoryScaffolding : PARTIAL
|
2
|
+
########################################################################################################################
|
3
|
+
# SETUP PLUGIN
|
4
|
+
########################################################################################################################
|
5
|
+
@App = angular.module('fembedded', ['ui.select'], ['$httpProvider', ($httpProvider) ->
|
6
|
+
$httpProvider.defaults.withCredentials = true
|
7
|
+
]).run(['$rootScope', ($rootScope) ->
|
8
|
+
$rootScope.app_is_loaded = true;
|
9
|
+
])
|
10
|
+
# END PARTIAL ##########################################################################################################
|
11
|
+
|