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.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/Rakefile +54 -3
- data/apps.json +8 -8
- data/lib/fanforce/app_factory.rb +19 -16
- data/lib/fanforce/app_factory/Rakefile +6 -14
- data/lib/fanforce/app_factory/Routes.rb +2 -2
- data/lib/fanforce/app_factory/app.rb +19 -8
- data/lib/fanforce/app_factory/cli.rb +5 -0
- data/lib/fanforce/app_factory/cli/bitbucket.rb +70 -0
- data/lib/fanforce/app_factory/cli/bundler.rb +21 -0
- data/lib/fanforce/app_factory/cli/env.rb +99 -0
- data/lib/fanforce/app_factory/cli/git.rb +58 -0
- data/lib/fanforce/app_factory/cli/iron.rb +61 -0
- data/lib/fanforce/app_factory/cli/pow.rb +46 -0
- data/lib/fanforce/app_factory/cli/scaffolding.rb +74 -0
- data/lib/fanforce/app_factory/cli/scaffolding_file.rb +510 -0
- data/lib/fanforce/app_factory/cli/scripts/config.rb +9 -0
- data/lib/fanforce/app_factory/cli/scripts/create.rb +64 -0
- data/lib/fanforce/app_factory/cli/scripts/destroy.rb +61 -0
- data/lib/fanforce/app_factory/cli/scripts/push.rb +70 -0
- data/lib/fanforce/app_factory/cli/scripts/restart.rb +40 -0
- data/lib/fanforce/app_factory/cli/scripts/setup.rb +70 -0
- data/lib/fanforce/app_factory/cli/scripts/status.rb +120 -0
- data/lib/fanforce/app_factory/cli/scripts/update.rb +41 -0
- data/lib/fanforce/app_factory/cli/uranium.rb +77 -0
- data/lib/fanforce/app_factory/cli/utils.rb +39 -0
- data/lib/fanforce/app_factory/cli_directory_of_apps.rb +50 -0
- data/lib/fanforce/app_factory/cli_single_app.rb +49 -0
- data/lib/fanforce/app_factory/controllers/base_controller.rb +0 -4
- data/lib/fanforce/app_factory/core_config.rb +25 -26
- data/lib/fanforce/app_factory/load.rb +8 -0
- data/lib/fanforce/app_factory/load_iron_worker.rb +2 -0
- data/lib/fanforce/app_factory/load_sprockets.rb +2 -0
- data/lib/fanforce/app_factory/scaffolding/._.gitignore.registry +1 -0
- data/lib/fanforce/app_factory/scaffolding/._Gemfile.registry +2 -0
- data/lib/fanforce/app_factory/scaffolding/._Rakefile.registry +2 -0
- data/lib/fanforce/app_factory/scaffolding/._config.json.registry +2 -0
- data/lib/fanforce/app_factory/scaffolding/._config.ru.registry +2 -0
- data/lib/fanforce/app_factory/scaffolding/._favicon.ico.registry +1 -0
- data/lib/fanforce/app_factory/scaffolding/._robots.txt.registry +2 -0
- data/lib/fanforce/app_factory/scaffolding/.gitignore +27 -0
- data/lib/fanforce/app_factory/scaffolding/Gemfile +9 -0
- data/lib/fanforce/app_factory/scaffolding/Rakefile +7 -0
- data/lib/fanforce/app_factory/{scafolding → scaffolding}/Routes.rb +5 -1
- data/lib/fanforce/app_factory/scaffolding/assets/css/._engagement.scss.registry +2 -0
- data/lib/fanforce/app_factory/scaffolding/assets/css/._fembedded.scss.registry +2 -0
- data/lib/fanforce/app_factory/scaffolding/assets/css/._promotional.scss.registry +3 -0
- data/lib/fanforce/app_factory/{scafolding/scafolding_assets → scaffolding/assets}/css/engagement.scss +8 -5
- data/lib/fanforce/app_factory/scaffolding/assets/css/fembedded.scss +22 -0
- data/lib/fanforce/app_factory/{scafolding/scafolding_assets → scaffolding/assets}/css/promotional.scss +9 -4
- data/lib/fanforce/app_factory/scaffolding/assets/img/._icon-16.png.registry +1 -0
- data/lib/fanforce/app_factory/scaffolding/assets/img/._icon-32.png.registry +1 -0
- data/lib/fanforce/app_factory/scaffolding/assets/img/._icon-42.png.registry +1 -0
- data/lib/fanforce/app_factory/scaffolding/assets/img/._marketplace.png.registry +1 -0
- data/lib/fanforce/app_factory/{scafolding/scafolding_assets → scaffolding/assets}/img/icon-16.png +0 -0
- data/lib/fanforce/app_factory/{scafolding/scafolding_assets → scaffolding/assets}/img/icon-32.png +0 -0
- data/lib/fanforce/app_factory/{scafolding/scafolding_assets → scaffolding/assets}/img/icon-42.png +0 -0
- data/lib/fanforce/app_factory/{scafolding/scafolding_assets → scaffolding/assets}/img/marketplace.png +0 -0
- data/lib/fanforce/app_factory/scaffolding/assets/img/promotional/._fanforce_bg.png.registry +1 -0
- data/lib/fanforce/app_factory/scaffolding/assets/img/promotional/._icon-42.png.registry +1 -0
- data/lib/fanforce/app_factory/scaffolding/assets/img/promotional/._icon-plus.png.registry +1 -0
- data/lib/fanforce/app_factory/{scafolding/scafolding_assets → scaffolding/assets}/img/promotional/fanforce_bg.png +0 -0
- data/lib/fanforce/app_factory/{scafolding/scafolding_assets → scaffolding/assets}/img/promotional/icon-42.png +0 -0
- data/lib/fanforce/app_factory/{scafolding/scafolding_assets → scaffolding/assets}/img/promotional/icon-plus.png +0 -0
- data/lib/fanforce/app_factory/scaffolding/assets/js/._fembedded-app.coffee.registry +2 -0
- data/lib/fanforce/app_factory/scaffolding/assets/js/._fembedded.js.registry +2 -0
- data/lib/fanforce/app_factory/scaffolding/assets/js/._promotional.js.registry +2 -0
- data/lib/fanforce/app_factory/scaffolding/assets/js/fembedded-app.coffee +11 -0
- data/lib/fanforce/app_factory/scaffolding/assets/js/fembedded.js +12 -0
- data/lib/fanforce/app_factory/scaffolding/assets/js/lib/._cookie.coffee.registry +2 -0
- data/lib/fanforce/app_factory/scaffolding/assets/js/lib/._filters.coffee.registry +2 -0
- data/lib/fanforce/app_factory/scaffolding/assets/js/lib/._utils.coffee.registry +2 -0
- data/lib/fanforce/app_factory/scaffolding/assets/js/lib/cookie.coffee +24 -0
- data/lib/fanforce/app_factory/scaffolding/assets/js/lib/filters.coffee +9 -0
- data/lib/fanforce/app_factory/scaffolding/assets/js/lib/utils.coffee +40 -0
- data/lib/fanforce/app_factory/scaffolding/assets/js/promotional.js +4 -0
- data/lib/fanforce/app_factory/scaffolding/config.json +24 -0
- data/lib/fanforce/app_factory/scaffolding/config.ru +8 -0
- data/lib/fanforce/app_factory/{scafolding/public → scaffolding}/favicon.ico +0 -0
- data/lib/fanforce/app_factory/scaffolding/layouts/._engagement.haml.registry +1 -0
- data/lib/fanforce/app_factory/scaffolding/layouts/._fembedded.haml.registry +2 -0
- data/lib/fanforce/app_factory/scaffolding/layouts/._promotional.haml.registry +1 -0
- data/lib/fanforce/app_factory/{scafolding → scaffolding}/layouts/engagement.haml +5 -4
- data/lib/fanforce/app_factory/scaffolding/layouts/fembedded.haml +26 -0
- data/lib/fanforce/app_factory/scaffolding/layouts/promotional.haml +19 -0
- data/lib/fanforce/app_factory/scaffolding/robots.txt +7 -0
- data/lib/fanforce/app_factory/scaffolding/views/._index.haml.registry +1 -0
- data/lib/fanforce/app_factory/{scafolding → scaffolding}/views/index.haml +13 -7
- data/lib/fanforce/app_factory/sinatra/_load.rb +7 -7
- data/lib/fanforce/app_factory/sinatra/helper_routes/app.rb +2 -2
- data/lib/fanforce/app_factory/sinatra/helper_routes/com_behavior.rb +2 -2
- data/lib/fanforce/app_factory/sinatra/helper_routes/com_broadcaster.rb +1 -1
- data/lib/fanforce/app_factory/sinatra/helper_routes/com_connector.rb +2 -2
- data/lib/fanforce/app_factory/sprockets/compiler.rb +0 -1
- data/lib/fanforce/app_factory/version.rb +1 -1
- data/workers.json +8 -8
- metadata +80 -38
- data/lib/fanforce/app_factory/asset_framework/app_factory/directives/internal-iframe/internal-iframe.scss +0 -1
- data/lib/fanforce/app_factory/asset_framework/app_factory/lib/cookie.coffee +0 -16
- data/lib/fanforce/app_factory/asset_framework/app_factory/lib/url.coffee +0 -20
- data/lib/fanforce/app_factory/asset_framework/app_factory/lib/utils.coffee +0 -11
- data/lib/fanforce/app_factory/asset_framework/app_factory/scafolding/_engagement.scss +0 -1
- data/lib/fanforce/app_factory/asset_framework/app_factory/scafolding/_promotional.scss +0 -1
- data/lib/fanforce/app_factory/asset_framework/app_factory/scafolding/_standard.scss +0 -1
- data/lib/fanforce/app_factory/asset_framework/app_factory/scafolding/promotional.coffee +0 -0
- data/lib/fanforce/app_factory/cli/_cleanorgs.rb +0 -54
- data/lib/fanforce/app_factory/scafolding/public/robots.txt +0 -2
- data/lib/fanforce/app_factory/scafolding/scafolding_assets/css/standard.scss +0 -10
- data/lib/fanforce/app_factory/scafolding/scafolding_assets/img/marketplace.psd +0 -0
- data/lib/fanforce/app_factory/scafolding/views/add_initiative.haml +0 -1
- data/lib/fanforce/app_factory/scafolding/views/add_source.haml +0 -1
- data/lib/fanforce/app_factory/scafolding/views/close_popup.haml +0 -8
- data/lib/fanforce/app_factory/scafolding/views/config.haml +0 -1
- data/lib/fanforce/app_factory/scafolding/views/convert_initiative.haml +0 -1
- data/lib/fanforce/app_factory/scafolding/views/dashboard.haml +0 -38
- data/lib/fanforce/app_factory/scafolding/views/edit_initiative.haml +0 -1
- data/lib/fanforce/app_factory/scafolding/views/engage.haml +0 -1
- data/lib/fanforce/app_factory/scafolding/views/new_message.haml +0 -1
- data/lib/fanforce/app_factory/scafolding/views/source_details.haml +0 -1
- data/lib/fanforce/app_factory/scafolding/views/widget_templates.haml +0 -1
- data/lib/fanforce/app_factory/sprockets/_all.rb +0 -2
@@ -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
|
data/lib/fanforce/app_factory/{scafolding/scafolding_assets → scaffolding/assets}/img/icon-16.png
RENAMED
File without changes
|
data/lib/fanforce/app_factory/{scafolding/scafolding_assets → scaffolding/assets}/img/icon-32.png
RENAMED
File without changes
|
data/lib/fanforce/app_factory/{scafolding/scafolding_assets → scaffolding/assets}/img/icon-42.png
RENAMED
File without changes
|
File without changes
|
@@ -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
|
File without changes
|
File without changes
|
File without changes
|
@@ -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,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 ##########################################################################################################
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
fanforce-app-factory-2.0.0.rc6:02405b7a50a0ed450d10c57b6d6ad034a247e9d1
|
@@ -0,0 +1 @@
|
|
1
|
+
fanforce-app-factory-2.0.0.rc6:ad07029e9f29896e1661791055508f17339a6d35
|
@@ -1,12 +1,13 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
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
|
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
|
-
|
2
|
-
|
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
|
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.
|
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.
|
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.
|
79
|
-
set :haml, {:
|
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
|