parse-dashboard 7.3.0-alpha.21 → 7.3.0-alpha.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -79,6 +79,9 @@ Parse Dashboard is a standalone dashboard for managing your [Parse Server](https
|
|
|
79
79
|
- [Limitations](#limitations)
|
|
80
80
|
- [CSV Export](#csv-export)
|
|
81
81
|
- [Views](#views)
|
|
82
|
+
- [View Table](#view-table)
|
|
83
|
+
- [Pointer](#pointer)
|
|
84
|
+
- [Link](#link)
|
|
82
85
|
- [Contributing](#contributing)
|
|
83
86
|
|
|
84
87
|
# Getting Started
|
|
@@ -1253,12 +1256,76 @@ This feature allows you to change how a pointer is represented in the browser. B
|
|
|
1253
1256
|
This feature will take either selected rows or all rows of an individual class and saves them to a CSV file, which is then downloaded. CSV headers are added to the top of the file matching the column names.
|
|
1254
1257
|
|
|
1255
1258
|
> ⚠️ There is currently a 10,000 row limit when exporting all data. If more than 10,000 rows are present in the class, the CSV file will only contain 10,000 rows.
|
|
1259
|
+
|
|
1256
1260
|
## Views
|
|
1257
1261
|
|
|
1258
1262
|
▶️ *Core > Views*
|
|
1259
1263
|
|
|
1260
1264
|
Views are saved queries that display aggregated data from your classes. Create a view by providing a name, selecting a class and defining an aggregation pipeline. Optionally enable the object counter to show how many items match the view. Saved views appear in the sidebar, where you can select, edit, or delete them.
|
|
1261
1265
|
|
|
1266
|
+
> [!Caution]
|
|
1267
|
+
> Values are generally rendered without sanitization in the resulting data table. If rendered values come from user input or untrusted data, make sure to remove potentially dangerous HTML or JavaScript, to prevent an attacker from injecting malicious code, to exploit vulnerabilities like Cross-Site Scripting (XSS).
|
|
1268
|
+
|
|
1269
|
+
### View Table
|
|
1270
|
+
|
|
1271
|
+
When designing the aggregation pipeline, consider that some values are rendered specially in the output table.
|
|
1272
|
+
|
|
1273
|
+
#### Pointer
|
|
1274
|
+
|
|
1275
|
+
Parse Object pointers are automatically displayed as links to the target object.
|
|
1276
|
+
|
|
1277
|
+
Example:
|
|
1278
|
+
|
|
1279
|
+
```json
|
|
1280
|
+
{ "__type": "Pointer", "className": "_User", "objectId": "xWMyZ4YEGZ" }
|
|
1281
|
+
```
|
|
1282
|
+
|
|
1283
|
+
#### Link
|
|
1284
|
+
|
|
1285
|
+
Links are rendered as hyperlinks that open in a new browser tab.
|
|
1286
|
+
|
|
1287
|
+
Example:
|
|
1288
|
+
|
|
1289
|
+
```json
|
|
1290
|
+
{
|
|
1291
|
+
"__type": "Link",
|
|
1292
|
+
"url": "https://example.com",
|
|
1293
|
+
"text": "Link"
|
|
1294
|
+
}
|
|
1295
|
+
```
|
|
1296
|
+
|
|
1297
|
+
Set `isRelativeUrl: true` when linking to another dashboard page, in which case the base URL for the relative URL will be `<PROTOCOL>://<HOST>/<MOUNT_PATH>/apps/<APP_NAME>/`. The key `isRelativeUrl` is optional and `false` by default.
|
|
1298
|
+
|
|
1299
|
+
Example:
|
|
1300
|
+
|
|
1301
|
+
```json
|
|
1302
|
+
{
|
|
1303
|
+
"__type": "Link",
|
|
1304
|
+
"url": "browser/_Installation",
|
|
1305
|
+
"isRelativeUrl": true,
|
|
1306
|
+
"text": "Link"
|
|
1307
|
+
}
|
|
1308
|
+
```
|
|
1309
|
+
|
|
1310
|
+
A query part of the URL can be easily added using the `urlQuery` key which will automatically escape the query string.
|
|
1311
|
+
|
|
1312
|
+
Example:
|
|
1313
|
+
|
|
1314
|
+
```json
|
|
1315
|
+
{
|
|
1316
|
+
"__type": "Link",
|
|
1317
|
+
"url": "browser/_Installation",
|
|
1318
|
+
"urlQuery": "filters=[{\"field\":\"objectId\",\"constraint\":\"eq\",\"compareTo\":\"xWMyZ4YEGZ\",\"class\":\"_Installation\"}]",
|
|
1319
|
+
"isRelativeUrl": true,
|
|
1320
|
+
"text": "Link"
|
|
1321
|
+
}
|
|
1322
|
+
```
|
|
1323
|
+
|
|
1324
|
+
In the example above, the query string will be escaped and added to the url, resulting in the complete URL:
|
|
1325
|
+
|
|
1326
|
+
```js
|
|
1327
|
+
"browser/_Installation?filters=%5B%7B%22field%22%3A%22objectId%22%2C%22constraint%22%3A%22eq%22%2C%22compareTo%22%3A%22xWMyZ4YEGZ%22%2C%22class%22%3A%22_Installation%22%7D%5D"
|
|
1328
|
+
```
|
|
1262
1329
|
|
|
1263
1330
|
# Contributing
|
|
1264
1331
|
|