fanforce-app-factory 2.0.0.rc5 → 2.0.0.rc7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (122) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/Rakefile +54 -3
  4. data/apps.json +8 -8
  5. data/lib/fanforce/app_factory.rb +19 -16
  6. data/lib/fanforce/app_factory/Rakefile +6 -14
  7. data/lib/fanforce/app_factory/Routes.rb +2 -2
  8. data/lib/fanforce/app_factory/app.rb +19 -8
  9. data/lib/fanforce/app_factory/cli.rb +5 -0
  10. data/lib/fanforce/app_factory/cli/bitbucket.rb +70 -0
  11. data/lib/fanforce/app_factory/cli/bundler.rb +21 -0
  12. data/lib/fanforce/app_factory/cli/env.rb +99 -0
  13. data/lib/fanforce/app_factory/cli/git.rb +58 -0
  14. data/lib/fanforce/app_factory/cli/iron.rb +61 -0
  15. data/lib/fanforce/app_factory/cli/pow.rb +46 -0
  16. data/lib/fanforce/app_factory/cli/scaffolding.rb +74 -0
  17. data/lib/fanforce/app_factory/cli/scaffolding_file.rb +510 -0
  18. data/lib/fanforce/app_factory/cli/scripts/config.rb +9 -0
  19. data/lib/fanforce/app_factory/cli/scripts/create.rb +64 -0
  20. data/lib/fanforce/app_factory/cli/scripts/destroy.rb +61 -0
  21. data/lib/fanforce/app_factory/cli/scripts/push.rb +70 -0
  22. data/lib/fanforce/app_factory/cli/scripts/restart.rb +40 -0
  23. data/lib/fanforce/app_factory/cli/scripts/setup.rb +70 -0
  24. data/lib/fanforce/app_factory/cli/scripts/status.rb +120 -0
  25. data/lib/fanforce/app_factory/cli/scripts/update.rb +41 -0
  26. data/lib/fanforce/app_factory/cli/uranium.rb +77 -0
  27. data/lib/fanforce/app_factory/cli/utils.rb +39 -0
  28. data/lib/fanforce/app_factory/cli_directory_of_apps.rb +50 -0
  29. data/lib/fanforce/app_factory/cli_single_app.rb +49 -0
  30. data/lib/fanforce/app_factory/controllers/base_controller.rb +0 -4
  31. data/lib/fanforce/app_factory/core_config.rb +25 -26
  32. data/lib/fanforce/app_factory/load.rb +8 -0
  33. data/lib/fanforce/app_factory/load_iron_worker.rb +2 -0
  34. data/lib/fanforce/app_factory/load_sprockets.rb +2 -0
  35. data/lib/fanforce/app_factory/scaffolding/._.gitignore.registry +1 -0
  36. data/lib/fanforce/app_factory/scaffolding/._Gemfile.registry +2 -0
  37. data/lib/fanforce/app_factory/scaffolding/._Rakefile.registry +2 -0
  38. data/lib/fanforce/app_factory/scaffolding/._config.json.registry +2 -0
  39. data/lib/fanforce/app_factory/scaffolding/._config.ru.registry +2 -0
  40. data/lib/fanforce/app_factory/scaffolding/._favicon.ico.registry +1 -0
  41. data/lib/fanforce/app_factory/scaffolding/._robots.txt.registry +2 -0
  42. data/lib/fanforce/app_factory/scaffolding/.gitignore +27 -0
  43. data/lib/fanforce/app_factory/scaffolding/Gemfile +9 -0
  44. data/lib/fanforce/app_factory/scaffolding/Rakefile +7 -0
  45. data/lib/fanforce/app_factory/{scafolding → scaffolding}/Routes.rb +5 -1
  46. data/lib/fanforce/app_factory/scaffolding/assets/css/._engagement.scss.registry +2 -0
  47. data/lib/fanforce/app_factory/scaffolding/assets/css/._fembedded.scss.registry +2 -0
  48. data/lib/fanforce/app_factory/scaffolding/assets/css/._promotional.scss.registry +3 -0
  49. data/lib/fanforce/app_factory/{scafolding/scafolding_assets → scaffolding/assets}/css/engagement.scss +8 -5
  50. data/lib/fanforce/app_factory/scaffolding/assets/css/fembedded.scss +22 -0
  51. data/lib/fanforce/app_factory/{scafolding/scafolding_assets → scaffolding/assets}/css/promotional.scss +9 -4
  52. data/lib/fanforce/app_factory/scaffolding/assets/img/._icon-16.png.registry +1 -0
  53. data/lib/fanforce/app_factory/scaffolding/assets/img/._icon-32.png.registry +1 -0
  54. data/lib/fanforce/app_factory/scaffolding/assets/img/._icon-42.png.registry +1 -0
  55. data/lib/fanforce/app_factory/scaffolding/assets/img/._marketplace.png.registry +1 -0
  56. data/lib/fanforce/app_factory/{scafolding/scafolding_assets → scaffolding/assets}/img/icon-16.png +0 -0
  57. data/lib/fanforce/app_factory/{scafolding/scafolding_assets → scaffolding/assets}/img/icon-32.png +0 -0
  58. data/lib/fanforce/app_factory/{scafolding/scafolding_assets → scaffolding/assets}/img/icon-42.png +0 -0
  59. data/lib/fanforce/app_factory/{scafolding/scafolding_assets → scaffolding/assets}/img/marketplace.png +0 -0
  60. data/lib/fanforce/app_factory/scaffolding/assets/img/promotional/._fanforce_bg.png.registry +1 -0
  61. data/lib/fanforce/app_factory/scaffolding/assets/img/promotional/._icon-42.png.registry +1 -0
  62. data/lib/fanforce/app_factory/scaffolding/assets/img/promotional/._icon-plus.png.registry +1 -0
  63. data/lib/fanforce/app_factory/{scafolding/scafolding_assets → scaffolding/assets}/img/promotional/fanforce_bg.png +0 -0
  64. data/lib/fanforce/app_factory/{scafolding/scafolding_assets → scaffolding/assets}/img/promotional/icon-42.png +0 -0
  65. data/lib/fanforce/app_factory/{scafolding/scafolding_assets → scaffolding/assets}/img/promotional/icon-plus.png +0 -0
  66. data/lib/fanforce/app_factory/scaffolding/assets/js/._fembedded-app.coffee.registry +2 -0
  67. data/lib/fanforce/app_factory/scaffolding/assets/js/._fembedded.js.registry +2 -0
  68. data/lib/fanforce/app_factory/scaffolding/assets/js/._promotional.js.registry +2 -0
  69. data/lib/fanforce/app_factory/scaffolding/assets/js/fembedded-app.coffee +11 -0
  70. data/lib/fanforce/app_factory/scaffolding/assets/js/fembedded.js +12 -0
  71. data/lib/fanforce/app_factory/scaffolding/assets/js/lib/._cookie.coffee.registry +2 -0
  72. data/lib/fanforce/app_factory/scaffolding/assets/js/lib/._filters.coffee.registry +2 -0
  73. data/lib/fanforce/app_factory/scaffolding/assets/js/lib/._utils.coffee.registry +2 -0
  74. data/lib/fanforce/app_factory/scaffolding/assets/js/lib/cookie.coffee +24 -0
  75. data/lib/fanforce/app_factory/scaffolding/assets/js/lib/filters.coffee +9 -0
  76. data/lib/fanforce/app_factory/scaffolding/assets/js/lib/utils.coffee +40 -0
  77. data/lib/fanforce/app_factory/scaffolding/assets/js/promotional.js +4 -0
  78. data/lib/fanforce/app_factory/scaffolding/config.json +24 -0
  79. data/lib/fanforce/app_factory/scaffolding/config.ru +8 -0
  80. data/lib/fanforce/app_factory/{scafolding/public → scaffolding}/favicon.ico +0 -0
  81. data/lib/fanforce/app_factory/scaffolding/layouts/._engagement.haml.registry +1 -0
  82. data/lib/fanforce/app_factory/scaffolding/layouts/._fembedded.haml.registry +2 -0
  83. data/lib/fanforce/app_factory/scaffolding/layouts/._promotional.haml.registry +1 -0
  84. data/lib/fanforce/app_factory/{scafolding → scaffolding}/layouts/engagement.haml +5 -4
  85. data/lib/fanforce/app_factory/scaffolding/layouts/fembedded.haml +26 -0
  86. data/lib/fanforce/app_factory/scaffolding/layouts/promotional.haml +19 -0
  87. data/lib/fanforce/app_factory/scaffolding/robots.txt +7 -0
  88. data/lib/fanforce/app_factory/scaffolding/views/._index.haml.registry +1 -0
  89. data/lib/fanforce/app_factory/{scafolding → scaffolding}/views/index.haml +13 -7
  90. data/lib/fanforce/app_factory/sinatra/_load.rb +7 -7
  91. data/lib/fanforce/app_factory/sinatra/helper_routes/app.rb +2 -2
  92. data/lib/fanforce/app_factory/sinatra/helper_routes/com_behavior.rb +2 -2
  93. data/lib/fanforce/app_factory/sinatra/helper_routes/com_broadcaster.rb +1 -1
  94. data/lib/fanforce/app_factory/sinatra/helper_routes/com_connector.rb +2 -2
  95. data/lib/fanforce/app_factory/sprockets/compiler.rb +0 -1
  96. data/lib/fanforce/app_factory/version.rb +1 -1
  97. data/workers.json +8 -8
  98. metadata +80 -38
  99. data/lib/fanforce/app_factory/asset_framework/app_factory/directives/internal-iframe/internal-iframe.scss +0 -1
  100. data/lib/fanforce/app_factory/asset_framework/app_factory/lib/cookie.coffee +0 -16
  101. data/lib/fanforce/app_factory/asset_framework/app_factory/lib/url.coffee +0 -20
  102. data/lib/fanforce/app_factory/asset_framework/app_factory/lib/utils.coffee +0 -11
  103. data/lib/fanforce/app_factory/asset_framework/app_factory/scafolding/_engagement.scss +0 -1
  104. data/lib/fanforce/app_factory/asset_framework/app_factory/scafolding/_promotional.scss +0 -1
  105. data/lib/fanforce/app_factory/asset_framework/app_factory/scafolding/_standard.scss +0 -1
  106. data/lib/fanforce/app_factory/asset_framework/app_factory/scafolding/promotional.coffee +0 -0
  107. data/lib/fanforce/app_factory/cli/_cleanorgs.rb +0 -54
  108. data/lib/fanforce/app_factory/scafolding/public/robots.txt +0 -2
  109. data/lib/fanforce/app_factory/scafolding/scafolding_assets/css/standard.scss +0 -10
  110. data/lib/fanforce/app_factory/scafolding/scafolding_assets/img/marketplace.psd +0 -0
  111. data/lib/fanforce/app_factory/scafolding/views/add_initiative.haml +0 -1
  112. data/lib/fanforce/app_factory/scafolding/views/add_source.haml +0 -1
  113. data/lib/fanforce/app_factory/scafolding/views/close_popup.haml +0 -8
  114. data/lib/fanforce/app_factory/scafolding/views/config.haml +0 -1
  115. data/lib/fanforce/app_factory/scafolding/views/convert_initiative.haml +0 -1
  116. data/lib/fanforce/app_factory/scafolding/views/dashboard.haml +0 -38
  117. data/lib/fanforce/app_factory/scafolding/views/edit_initiative.haml +0 -1
  118. data/lib/fanforce/app_factory/scafolding/views/engage.haml +0 -1
  119. data/lib/fanforce/app_factory/scafolding/views/new_message.haml +0 -1
  120. data/lib/fanforce/app_factory/scafolding/views/source_details.haml +0 -1
  121. data/lib/fanforce/app_factory/scafolding/views/widget_templates.haml +0 -1
  122. data/lib/fanforce/app_factory/sprockets/_all.rb +0 -2
@@ -0,0 +1,3 @@
1
+ fanforce-app-factory-2.0.0.rc6:cd006c446e288f6eba688bc01ef601981e6b6326
2
+ fanforce-app-factory-2.0.0.rc6:1c4d1c57a8b97a2ea0c5fc4d321b94a160f0469b
3
+ fanforce-app-factory-2.0.0.rc6:a1fadf99e03856d8a8b7b164225be2be9020a532
@@ -1,12 +1,15 @@
1
+ // AppFactoryScaffolding : PARTIAL
2
+ ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
3
+
1
4
  @import 'compass/css3';
2
5
  @import "compass/layout/sticky-footer";
3
6
  @import 'compass/utilities';
4
7
 
5
- //////////////////////////////////////////////////////////////////////////////////////////////////
8
+ ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
6
9
 
7
10
  @import 'app_factory/common';
8
11
 
9
- //////////////////////////////////////////////////////////////////////////////////////////////////
12
+ ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
10
13
 
11
14
  h1, .h1 { font-size: 30px; font-weight:bold; margin:10px 0; line-height:1em; }
12
15
  h2, .h2 { font-size: 20px; font-weight:bold; margin:8px 0; line-height:1em; }
@@ -35,9 +38,6 @@ pre { font-family:"Courier New", Courier, monospace, sans-serif; color: #555; li
35
38
 
36
39
  .hide { display:none !important; }
37
40
 
38
- //////////////////////////////////////////////////////////////////////////////////////////////////
39
- // FRAMEWORK: MODULE ACTIVATION
40
- //////////////////////////////////////////////////////////////////////////////////////////////////
41
41
  html { height:100%; }
42
42
  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;
43
43
  @include sticky-footer(40px, ".lyt-root", ".lyt-root-footer", ".lyt-footer");
@@ -64,3 +64,6 @@ body { height: 100%; background-color:#292a2e; @include ff-gradient(#26262a,#2b2
64
64
  .loading { line-height: 100px; }
65
65
  }
66
66
  }
67
+
68
+ // END PARTIAL /////////////////////////////////////////////////////////////////////////////////////////////////////////
69
+
@@ -0,0 +1,22 @@
1
+ // AppFactoryScaffolding : PARTIAL
2
+ ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
3
+
4
+ @import 'compass/css3';
5
+ @import 'compass/utilities';
6
+
7
+ ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
8
+
9
+ @import 'app_factory/bootstrap';
10
+ @import 'app_factory/font-awesome';
11
+ @import 'app_factory/common';
12
+
13
+ ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
14
+
15
+ html.fembedded-layout {
16
+ body {
17
+ overflow: hidden;
18
+ background: #F4F8FC;
19
+ }
20
+ }
21
+
22
+ // END PARTIAL /////////////////////////////////////////////////////////////////////////////////////////////////////////
@@ -1,16 +1,19 @@
1
+ // AppFactoryScaffolding : PARTIAL
2
+ ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
3
+
1
4
  @import 'compass/css3';
2
5
  @import 'compass/utilities';
3
6
 
4
- //////////////////////////////////////////////////////////////////////////////////////////////////
7
+ ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
5
8
 
6
9
  @import 'app_factory/bootstrap';
7
10
  @import 'app_factory/font-awesome';
8
11
  @import 'app_factory/common';
9
12
 
10
- //////////////////////////////////////////////////////////////////////////////////////////////////
11
-
12
- body.promotional-layout { background:#f6f8fa url(/assets/scafolding_assets/img/promotional/fanforce_bg.png) fixed; text-align: center; text-shadow: #ffffff 1px 1px 0;
13
+ ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
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; }
14
17
  .loading { color: #8f9ba7; }
15
18
  .loading, .loaded { padding-top: 85px; }
16
19
 
@@ -26,3 +29,5 @@ body.promotional-layout { background:#f6f8fa url(/assets/scafolding_assets/img/p
26
29
  }
27
30
 
28
31
  }
32
+
33
+ // END PARTIAL /////////////////////////////////////////////////////////////////////////////////////////////////////////
@@ -0,0 +1 @@
1
+ fanforce-app-factory-2.0.0.rc6:2c4a41c23733786ba4c196a9fea72629d3954324
@@ -0,0 +1 @@
1
+ fanforce-app-factory-2.0.0.rc6:0beb56b727da2e9c51fdc26807ec7a3639006ea0
@@ -0,0 +1 @@
1
+ fanforce-app-factory-2.0.0.rc6:5b9b715b154cf49ab66d18414d02d7b3dbc981cf
@@ -0,0 +1 @@
1
+ fanforce-app-factory-2.0.0.rc6:25352f7963722a800dd1f8dbbe14d4942f2f4383
@@ -0,0 +1 @@
1
+ fanforce-app-factory-2.0.0.rc6:80bb437f5177d8481ea4891ae3b699b933130cb0
@@ -0,0 +1 @@
1
+ fanforce-app-factory-2.0.0.rc6:5b9b715b154cf49ab66d18414d02d7b3dbc981cf
@@ -0,0 +1 @@
1
+ fanforce-app-factory-2.0.0.rc6:e5285efa7c82a083ed349f1dbe6c34ba37a6689d
@@ -0,0 +1,2 @@
1
+ fanforce-app-factory-2.0.0.rc6:6448e6a38da910d557be37ed6f2ccbd9e56e6842
2
+ fanforce-app-factory-2.0.0.rc6:4ec155f1fcbc67b0d55d7c61049d603892113a84
@@ -0,0 +1,2 @@
1
+ fanforce-app-factory-2.0.0.rc6:130fe4541ada9247bd4224b54f744f17476d7e55
2
+ fanforce-app-factory-2.0.0.rc6:89a46b16eb62e6dd5b68767cc9e2d39733eb94c0
@@ -0,0 +1,2 @@
1
+ fanforce-app-factory-2.0.0.rc6:2bd39d304fc2704b882c6020e0b117f2803961e7
2
+ fanforce-app-factory-2.0.0.rc6:61ff012e2394a0a520e50043d6189240c567aa36
@@ -0,0 +1,11 @@
1
+ # AppFactoryScaffolding : PARTIAL
2
+ ########################################################################################################################
3
+ # SETUP APP
4
+ ########################################################################################################################
5
+ @App = angular.module('app', ['ui.select'], ['$httpProvider', ($httpProvider) ->
6
+ $httpProvider.defaults.withCredentials = true
7
+ ]).run(['$rootScope', ($rootScope) ->
8
+ $rootScope.app_is_loaded = true;
9
+ ])
10
+ # END PARTIAL ##########################################################################################################
11
+
@@ -0,0 +1,12 @@
1
+ // AppFactoryScaffolding : PARTIAL
2
+ ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
3
+ //= require fembedded-app
4
+ ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
5
+ //= require app_factory/ui-select
6
+ ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
7
+ //= require app_factory/directives
8
+ //= require app_factory/lib
9
+ ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
10
+ //= require_tree ./lib
11
+ //= require_tree ./controllers
12
+ // END PARTIAL /////////////////////////////////////////////////////////////////////////////////////////////////////////
@@ -0,0 +1,2 @@
1
+ fanforce-app-factory-2.0.0.rc6:4a06d7375c7bc27405e8dfa3e169cba1a9aa314a
2
+ fanforce-app-factory-2.0.0.rc6:71aedacc6a103c40403df6adca83dd4a891f204a
@@ -0,0 +1,2 @@
1
+ fanforce-app-factory-2.0.0.rc6:89ec4c29cda80ef22367c43e07f30c6feb53c92b
2
+ fanforce-app-factory-2.0.0.rc6:aa4484417ba6f1b036316847cdff214ae3097f35
@@ -0,0 +1,2 @@
1
+ fanforce-app-factory-2.0.0.rc6:407f7b3867aa3973e170fcf9bb547ba033dc948b
2
+ fanforce-app-factory-2.0.0.rc6:4006302899d8ec7d634005b27a8fa262aaa01705
@@ -0,0 +1,24 @@
1
+ # AppFactoryScaffolding : PARTIAL
2
+ ########################################################################################################################
3
+ window.Cookie = {}
4
+ ########################################################################################################################
5
+
6
+ Cookie.set = ((name, value, exdays=null)->
7
+ exdate = new Date()
8
+ exdate.setDate(exdate.getDate() + exdays)
9
+ value = "#{escape(value)}; path=/"
10
+ value += "; expires=#{exdate.toUTCString()}" if exdays
11
+ value += "; domain=.#{BASE_DOMAIN}" if BASE_DOMAIN and URL.parse(window.location.href).root_domain != '0.0'
12
+ document.cookie = "#{name}=#{value}"
13
+ )
14
+
15
+ Cookie.get = ((name)->
16
+ cookies = document.cookie.split(";")
17
+ for cookie in cookies
18
+ x = cookie.substr(0,cookie.indexOf("="))
19
+ y = cookie.substr(cookie.indexOf("=")+1)
20
+ x = x.replace(/^\s+|\s+$/g,"")
21
+ return unescape(y) if (x==name)
22
+ )
23
+
24
+ # END PARTIAL ##########################################################################################################
@@ -0,0 +1,9 @@
1
+ # AppFactoryScaffolding : PARTIAL
2
+ ########################################################################################################################
3
+
4
+ App.filter 'fromNow', (-> (date) ->
5
+ return 'never' if !date
6
+ moment(date).fromNow()
7
+ )
8
+
9
+ # END PARTIAL ##########################################################################################################
@@ -0,0 +1,40 @@
1
+ # AppFactoryScaffolding : PARTIAL
2
+ ########################################################################################################################
3
+ window.Utils = {}
4
+ ########################################################################################################################
5
+
6
+ Utils.$safeApply = ((fn) ->
7
+ phase = this.$root.$$phase;
8
+ if(phase == '$apply' || phase == '$digest')
9
+ fn() if(fn && (typeof(fn) == 'function'))
10
+ else
11
+ this.$apply(fn)
12
+ )
13
+ Utils.removeFromArray = ((value, array) ->
14
+ index = array.indexOf(value)
15
+ array.splice(index, 1)
16
+ )
17
+
18
+ Utils.parseUrl = ((url_string) ->
19
+ uriPartNames = ["source","scheme","authority","host","port","path","directory_path","file_name","query_string","hash"]
20
+ uriParts = new RegExp("^(?:([^:/?#.]+):)?(?://)?(([^:/?#]*)(?::(\\d*))?)?((/(?:[^?#](?![^?#/]*\\.[^?#/.]+(?:[\\?#]|$)))*/?)?([^?#/]*))?(?:\\?([^#]*))?(?:#(.*))?").exec(url_string)
21
+ uri = {};
22
+ for i in [0..uriPartNames.length]
23
+ uri[uriPartNames[i]] = (if uriParts[i] then uriParts[i] else '')
24
+ uri.port = if uri.port then parseInt(uri.port) else 80
25
+ domain_parts = (/^(.*?)\.?([^\.]*\.\w+)$/).exec(uri.host)
26
+ if domain_parts?
27
+ uri.sub_domain = domain_parts[1]
28
+ uri.root_domain = domain_parts[2]
29
+ else
30
+ uri.sub_domain = uri.root_domain = ''
31
+ if(uri.directory_path.length > 0)
32
+ uri.directory_path = uri.directory_path.replace(/\/?$/, "/")
33
+ return uri
34
+ )
35
+
36
+ Utils.parseQueryString = ((query_string) ->
37
+ $.deparam(query_string)
38
+ )
39
+
40
+ # END PARTIAL ##########################################################################################################
@@ -0,0 +1,4 @@
1
+ // AppFactoryScaffolding : PARTIAL
2
+ ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
3
+
4
+ // END PARTIAL /////////////////////////////////////////////////////////////////////////////////////////////////////////
@@ -0,0 +1,24 @@
1
+ {
2
+ "_id": null,
3
+ "name": null,
4
+ "description": null,
5
+ "callback_urls": {
6
+ "install": "http://{{APP_DOMAIN}}/install",
7
+ "uninstall": "http://{{APP_DOMAIN}}/uninstall"
8
+ },
9
+ "public_urls": {
10
+ "marketplace_img": "http://{{APP_DOMAIN}}/assets/marketplace.png",
11
+ "icon_16": "http://{{APP_DOMAIN}}/assets/icon-16.png",
12
+ "icon_32": "http://{{APP_DOMAIN}}/assets/icon-32.png",
13
+ "icon_42": "http://{{APP_DOMAIN}}/assets/icon-42.png"
14
+ },
15
+ "com_behaviors": [],
16
+ "com_broadcasters": [],
17
+ "com_connectors": [],
18
+ "com_js_finders": [],
19
+ "com_js_trackers": [],
20
+ "iron_workers": [],
21
+ "fanforce_version_dependency": "1.5",
22
+ "created_with_app_factory_version": null,
23
+ "awaiting_uranium_setup": true
24
+ }
@@ -0,0 +1,8 @@
1
+ # AppFactoryScaffolding : PARTIAL
2
+ ########################################################################################################################
3
+ require 'bundler'; Bundler.setup
4
+ require 'fanforce/app_factory'
5
+
6
+ run Fanforce::App
7
+
8
+ # END PARTIAL ##########################################################################################################
@@ -0,0 +1 @@
1
+ fanforce-app-factory-2.0.0.rc6:02405b7a50a0ed450d10c57b6d6ad034a247e9d1
@@ -0,0 +1,2 @@
1
+ fanforce-app-factory-2.0.0.rc6:0af55ae841e12060b516293b45f0e792c2ed89b9
2
+ fanforce-app-factory-2.0.0.rc6:750b6bdf56a47d700a45cc8e1d3a711933603f0d
@@ -0,0 +1 @@
1
+ fanforce-app-factory-2.0.0.rc6:ad07029e9f29896e1661791055508f17339a6d35
@@ -1,12 +1,13 @@
1
- <?xml version='1.0' encoding='utf-8' ?>
2
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
- %html
1
+ -# AppFactoryScaffolding : FILE
2
+ -#######################################################################################################################
3
+ !!! 5
4
+ %html.engagement-layout
4
5
  %head
5
6
  %title Fanforce
6
7
  %meta{'http-equiv'=>'Content-Type', content:'text/html; charset=iso-8859-1'}/
7
8
  %meta{'http-equiv'=>'Content-Language', content: 'en-us'}/
8
9
  = stylesheet '/engagement.css'
9
- %body.layout-engagement
10
+ %body
10
11
  .lyt-root
11
12
  .lyt-header
12
13
  #hello
@@ -0,0 +1,26 @@
1
+ -# AppFactoryScaffolding : FILE
2
+ -#######################################################################################################################
3
+ !!! 5
4
+ %html.fembedded-layout(ng-app='fembedded')
5
+ %head
6
+ %title Fanforce App
7
+ %meta(charset='UTF-8')/
8
+ %meta(http-equiv='X-UA-Compatible' content='IE=edge,chrome=1')/
9
+ %meta(name='viewport' content='width=device-width')/
10
+ %meta(http-equiv='Content-Type' content='text/html charset=iso-8859-1')/
11
+ %meta(http-equiv='Content-Language' content='en-us')/
12
+ :javascript
13
+ BASE_DOMAIN = #{Fanforce.base_domain.to_json}
14
+ API_DOMAIN = #{Fanforce.api_domain.to_json}
15
+ = javascript 'http://i.fanforce.dev/devforce.js'
16
+ = javascript 'http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.js'
17
+ = javascript 'http://ajax.googleapis.com/ajax/libs/angularjs/1.3.4/angular.min.js'
18
+ = stylesheet 'fembedded'
19
+ = javascript 'fembedded'
20
+
21
+ %body(class=page_classes)
22
+ .page-loading(ng-hide='app_is_loaded')
23
+ %loading Page loading...
24
+ .page-loaded(ng-show='app_is_loaded')
25
+ .angular-view(ng-view)
26
+ .standard-view= yield
@@ -0,0 +1,19 @@
1
+ -# AppFactoryScaffolding : FILE
2
+ -#######################################################################################################################
3
+ !!! 5
4
+ %html.promotional-layout
5
+ %head
6
+ %title Fanforce
7
+ %meta{'http-equiv'=>'Content-Type', content:'text/html; charset=iso-8859-1'}/
8
+ %meta{'http-equiv'=>'Content-Language', content: 'en-us'}/
9
+ = stylesheet '/promotional.css'
10
+ :javascript
11
+ BASE_DOMAIN = #{Fanforce.base_domain.to_json}
12
+ API_DOMAIN = #{Fanforce.api_domain.to_json}
13
+
14
+ %body
15
+ = yield
16
+ = javascript '//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js'
17
+ = javascript "//#{Fanforce.eye_domain}/devforce.js#{'?DEBUG=1&DYNAMIC=1' if ENV['RACK_ENV']=='development'}"
18
+ = javascript '/promotional.js'
19
+ = yield_content :after_core_js
@@ -0,0 +1,7 @@
1
+ # AppFactoryScaffolding : PARTIAL
2
+ ########################################################################################################################
3
+
4
+ User-agent: *
5
+ Allow: /
6
+
7
+ # END PARTIAL ##########################################################################################################
@@ -0,0 +1 @@
1
+ fanforce-app-factory-2.0.0.rc6:48bf030f14a9dbd660503d182ecb91690a43066e
@@ -1,15 +1,19 @@
1
- .header-icons
2
- %img{src: image_path('/promotional/icon-42.png') }
3
- %img{src: image_path('/promotional/icon-plus.png') }
4
- %img{src: image_path('/icon-42.png') }
1
+ -# AppFactoryScaffolding : FILE
2
+ -#######################################################################################################################
5
3
 
6
4
  .loading
7
5
  %h2 Loading App Info...
8
6
 
9
7
  .loaded(style='display:none')
10
8
  %h1.app_name -------------
9
+
10
+ .header-icons
11
+ %img{src: image_path('/promotional/icon-42.png') }
12
+ %img{src: image_path('/promotional/icon-plus.png') }
13
+ %img{src: image_path('/icon-42.png') }
14
+
11
15
  .subtitle
12
- %strong A Fanforce App
16
+ %strong A Fanforce App Integration
13
17
  %span developed by
14
18
  %strong.app_company_name --------
15
19
 
@@ -30,9 +34,11 @@
30
34
 
31
35
  - content_for :after_core_js do
32
36
  :coffeescript
33
- FF.get '/apps/#{App._id}', {}, (app) ->
34
- $('.app_company_name').text(app.company_name)
37
+ FF.get('/available_apps/#{App._id}').done((app)->
38
+ $('.app_company_name').text(app.company_name || 'Engineers Who Love Coffee')
35
39
  $('.app_company_description').text(app.company_description)
36
40
  $('.app_name').text(app.name)
37
41
  $('.loading').hide()
38
42
  $('.loaded').show()
43
+ $('.about-box').hide() if !app.company_description
44
+ )
@@ -32,13 +32,13 @@ class Fanforce::App::Sinatra < Sinatra::Base
32
32
  end
33
33
 
34
34
  def self.require_controllers
35
- require "#{App.config.factory_dir}/controllers/base_controller"
36
- Dir["#{App.config.root_dir}/controllers/*_controller.rb"].each {|file| require file }
35
+ require "#{Fanforce::App.config.factory_dir}/controllers/base_controller"
36
+ Dir["#{Fanforce::App.config.base_dir}/controllers/*_controller.rb"].each {|file| require file }
37
37
  end
38
38
 
39
39
  def self.create_basic_routes_from(path)
40
40
  path = ('views/' + path.to_s.gsub(/^views\/?/, '')).gsub(/\/$/, '')
41
- Dir["#{App.config.root_dir}/#{path}/*/*.haml"].each do |file|
41
+ Dir["#{Fanforce::App.config.base_dir}/#{path}/*/*.haml"].each do |file|
42
42
  create_basic_route($1) if file =~ /\/views\/(.+).haml/
43
43
  end
44
44
  end
@@ -72,11 +72,11 @@ class Fanforce::App::Sinatra < Sinatra::Base
72
72
  end
73
73
 
74
74
  configure do
75
- App.config.load_bugsnag
76
- App.config.load_routes
75
+ Fanforce::App.config.load_bugsnag
76
+ Fanforce::App.config.load_routes
77
77
 
78
- set :root, App.config.root_dir
79
- set :haml, {:escape_attrs => false}
78
+ set :root, Fanforce::App.config.base_dir
79
+ set :haml, {escape_attrs: false}
80
80
  set :static, true
81
81
  set :protection, :except => [:frame_options, :json_csrf]
82
82
  end