@sanity/dashboard 3.1.1 → 3.1.3
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/LICENSE +1 -1
- package/README.md +15 -0
- package/lib/{src/index.d.ts → index.d.ts} +0 -0
- package/lib/index.esm.js +728 -1
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +744 -1
- package/lib/index.js.map +1 -1
- package/package.json +27 -23
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -70,6 +70,21 @@ Widgets can be configured by passing widget-specific config:
|
|
|
70
70
|
projectUsersWidget({layout: 'medium'})
|
|
71
71
|
```
|
|
72
72
|
|
|
73
|
+
You can change the name, title and icon of the dashboard tool should you want to - which also allows you to configure multiple dashboards with different configurations:
|
|
74
|
+
|
|
75
|
+
```ts
|
|
76
|
+
import { defineConfig } from "sanity";
|
|
77
|
+
import { dashboardTool } from "@sanity/dashboard";
|
|
78
|
+
import { ActivityIcon } from "@sanity/icons";
|
|
79
|
+
|
|
80
|
+
dashboardTool({
|
|
81
|
+
name: "stats",
|
|
82
|
+
title: "Statistics",
|
|
83
|
+
icon: ActivityIcon,
|
|
84
|
+
widgets: [/* ... */]
|
|
85
|
+
})
|
|
86
|
+
```
|
|
87
|
+
|
|
73
88
|
## How to install a widget
|
|
74
89
|
|
|
75
90
|
Install a Dashboard widget as you would any npm package.
|
|
File without changes
|