From 0ddd93b271e8edd9ae0374dc2c7098862cda23a2 Mon Sep 17 00:00:00 2001 From: Dylan Diamond Date: Fri, 1 Apr 2016 21:04:37 -0400 Subject: [PATCH 1/2] added production setting for badge --- README.md | 7 ++++--- src/dashboard/Apps/AppsIndex.react.js | 2 ++ src/lib/ParseApp.js | 3 ++- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index e861c9c1fc..79395f177c 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ If you want to manage multiple apps from the same dashboard, you can start the d "serverURL": "http://localhost:1337/parse", "appId": "myAppId", "masterKey": "myMasterKey", - "appName": "MyApp" + "appName": "MyApp", } ] } @@ -44,7 +44,8 @@ You can also manage apps that on Parse.com from the same dashboard. In your conf "masterKey": "myMasterKey", "javascriptKey": "myJavascriptKey", "restKey": "myRestKey", - "appName": "My Parse.Com App" + "appName": "My Parse.Com App", + "production": true }, { "serverURL": "http://localhost:1337/parse", @@ -62,7 +63,7 @@ You can also manage apps that on Parse.com from the same dashboard. In your conf ## Other options -You can set `appNameForURL` in the config file for each app to control the url of your app within the dashboard. This can make it easier to use bookmarks or share links on your dashboard. +You can set `appNameForURL` in the config file for each app to control the url of your app within the dashboard. This can make it easier to use bookmarks or share links on your dashboard. To change the app to production, simply set `production` to `true` in your config file. Defaults to false if not specified. ## Deploying the dashboard diff --git a/src/dashboard/Apps/AppsIndex.react.js b/src/dashboard/Apps/AppsIndex.react.js index 1749e0aa8e..5cde6dd26b 100644 --- a/src/dashboard/Apps/AppsIndex.react.js +++ b/src/dashboard/Apps/AppsIndex.react.js @@ -20,6 +20,7 @@ import React from 'react'; import styles from 'dashboard/Apps/AppsIndex.scss'; import { center } from 'stylesheets/base.scss'; import { Link } from 'react-router'; +import AppBadge from 'components/AppBadge/AppBadge.react'; function dash(value, content) { if (value === undefined) { @@ -81,6 +82,7 @@ let AppCard = ({ {versionMessage} + diff --git a/src/lib/ParseApp.js b/src/lib/ParseApp.js index ce791a7833..9d503f6c8f 100644 --- a/src/lib/ParseApp.js +++ b/src/lib/ParseApp.js @@ -37,6 +37,7 @@ export default class ParseApp { apiKey, serverURL, serverInfo, + production, ...params, }) { this.name = appName; @@ -54,7 +55,7 @@ export default class ParseApp { this.windowsKey = windowsKey; this.webhookKey = webhookKey; this.fileKey = apiKey; - this.production = !!params['is_production?']; + this.production = production; this.serverURL = serverURL; this.serverInfo = serverInfo; From 829cc2aaa198e977ea25276f908742f0769b8018 Mon Sep 17 00:00:00 2001 From: Dylan Diamond Date: Fri, 1 Apr 2016 21:06:52 -0400 Subject: [PATCH 2/2] removed last item comma --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 79395f177c..b11d952c4f 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ If you want to manage multiple apps from the same dashboard, you can start the d "serverURL": "http://localhost:1337/parse", "appId": "myAppId", "masterKey": "myMasterKey", - "appName": "MyApp", + "appName": "MyApp" } ] }