You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,15 @@
4
4
5
5
*_Contributing to this repo? Add info about your change here to be included in next release_
6
6
7
+
### 1.2.0
8
+
* Fix: Filtering with a 1-digit number (#831), thanks to [Pascal Giguère](https://github.com/pgiguere1)
9
+
* Fix: Databrowser shows correct count of filtered objects, thanks to [Tom Engelbrecht](https://github.com/engel)
10
+
* Feature: Add primaryBackgroundColor and secondaryBackgroundColor in AppCard, thanks to [AreyouHappy](https://github.com/AreyouHappy)
11
+
* Improvement: Removes forcing sort on createdAt (#796), thanks to [Florent Vilmart](https://github.com/flovilmart)
12
+
* Fix: Broken Learn More link to cloud code documentation page (#828), thanks to [Stefan Trauth](https://github.com/funkenstrahlen)
13
+
* Fix: Add `_PushStatus` add to SpecialClasses (#701), thanks to [Dongwoo Gim](https://github.com/gimdongwoo)
14
+
* Fix: Include PushAudience query (#795), thanks to [marvelm](https://github.com/marvelm)
15
+
7
16
### 1.1.2
8
17
9
18
* Fix: An issue introduced when using readOnlyMasterKey would make all users readOnly after one has logged in.
@@ -100,7 +113,7 @@ Managing multiple apps from the same dashboard is also possible. Simply add add
100
113
101
114
You can manage self-hosted [Parse Server](https://github.com/ParsePlatform/parse-server) apps, *and* apps that are hosted on [Parse.com](http://parse.com/) from the same dashboard. In your config file, you will need to add the `restKey` and `javascriptKey` as well as the other paramaters, which you can find on `dashboard.parse.com`. Set the serverURL to `http://api.parse.com/1`:
102
115
103
-
```js
116
+
```json
104
117
{
105
118
"apps": [
106
119
{
@@ -141,6 +154,33 @@ Parse Dashboard supports adding an optional icon for each app, so you can identi
141
154
}
142
155
```
143
156
157
+
## App Background Color Configuration
158
+
159
+
Parse Dashboard supports adding an optional background color for each app, so you can identify them easier in the list. To do so, you *must* use the configuration file, define an `primaryBackgroundColor` and `secondaryBackgroundColor` in it, parameter for each app. It is `CSS style`. To visualize what it means, in the following example `backgroundColor` is a configuration file:
160
+
161
+
```json
162
+
{
163
+
"apps": [
164
+
{
165
+
"serverURL": "http://localhost:1337/parse",
166
+
"appId": "myAppId",
167
+
"masterKey": "myMasterKey",
168
+
"appName": "My Parse Server App",
169
+
"primaryBackgroundColor": "#FFA500", // Orange
170
+
"secondaryBackgroundColor": "#FF4500"// OrangeRed
171
+
},
172
+
{
173
+
"serverURL": "http://localhost:1337/parse",
174
+
"appId": "myAppId",
175
+
"masterKey": "myMasterKey",
176
+
"appName": "My Parse Server App [2]",
177
+
"primaryBackgroundColor": "rgb(255, 0, 0)", // Red
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.
@@ -151,7 +191,7 @@ To change the app to production, simply set `production` to `true` in your confi
151
191
152
192
Instead of starting Parse Dashboard with the CLI, you can also run it as an [express](https://github.com/expressjs/express) middleware.
153
193
154
-
```
194
+
```javascript
155
195
var express =require('express');
156
196
var ParseDashboard =require('parse-dashboard');
157
197
@@ -177,20 +217,20 @@ httpServer.listen(4040);
177
217
178
218
If you want to run both [Parse Server](https://github.com/ParsePlatform/parse-server) and Parse Dashboard on the same server/port, you can run them both as express middleware:
179
219
180
-
```
220
+
```javascript
181
221
var express =require('express');
182
222
var ParseServer =require('parse-server').ParseServer;
183
223
var ParseDashboard =require('parse-dashboard');
184
224
185
-
var allowInsecureHTTP = false
186
-
187
225
var api =newParseServer({
188
226
// Parse Server settings
189
227
});
190
228
229
+
var options = { allowInsecureHTTP:false };
230
+
191
231
var dashboard =newParseDashboard({
192
232
// Parse Dashboard settings
193
-
}, allowInsecureHTTP);
233
+
}, options);
194
234
195
235
var app =express();
196
236
@@ -215,7 +255,7 @@ In order to securely deploy the dashboard without leaking your apps master key,
215
255
216
256
The deployed dashboard detects if you are using a secure connection. If you are deploying the dashboard behind a load balancer or front-facing proxy, then the app won't be able to detect that the connection is secure. In this case, you can start the dashboard with the `--trustProxy=1` option (or set the PARSE_DASHBOARD_TRUST_PROXY config var to 1) to rely on the X-Forwarded-* headers for the client's connection security. This is useful for hosting on services like Heroku, where you can trust the provided proxy headers to correctly determine whether you're using HTTP or HTTPS. You can also turn on this setting when using the dashboard as [express](https://github.com/expressjs/express) middleware:
217
257
218
-
```
258
+
```javascript
219
259
var trustProxy =true;
220
260
var dashboard =newParseDashboard({
221
261
"apps": [
@@ -300,7 +340,7 @@ Start your `parse-server` with
300
340
301
341
Then in your dashboard configuration:
302
342
303
-
```
343
+
```javascript
304
344
var trustProxy =true;
305
345
var dashboard =newParseDashboard({
306
346
"apps": [
@@ -317,41 +357,72 @@ var dashboard = new ParseDashboard({
317
357
318
358
### Makings users read-only
319
359
360
+
Make sure you specify the `readOnlyMasterKey` for the apps that you want to use read-only feature in "apps" configuration.
0 commit comments