muffin-admin 1.45.0 → 1.45.2
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/dist/MuffinAdmin.js +3 -3
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types.d.ts +1 -1
- package/package.json +8 -8
- package/src/MuffinAdmin.tsx +3 -3
- package/src/types.ts +1 -1
package/dist/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "muffin-admin",
|
|
3
|
-
"version": "1.45.
|
|
3
|
+
"version": "1.45.2",
|
|
4
4
|
"description": "NPM package for https://github.com/klen/muffin-admin",
|
|
5
5
|
"files": [
|
|
6
6
|
"src",
|
|
@@ -30,19 +30,19 @@
|
|
|
30
30
|
"validator": "^13.9.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@types/node": "20.
|
|
34
|
-
"@types/react": "18.2.
|
|
35
|
-
"@types/react-dom": "18.2.
|
|
33
|
+
"@types/node": "20.5.0",
|
|
34
|
+
"@types/react": "18.2.20",
|
|
35
|
+
"@types/react-dom": "18.2.7",
|
|
36
36
|
"@types/react-window": "^1.8.5",
|
|
37
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
|
38
|
-
"@typescript-eslint/parser": "^6.
|
|
37
|
+
"@typescript-eslint/eslint-plugin": "^6.4.0",
|
|
38
|
+
"@typescript-eslint/parser": "^6.4.0",
|
|
39
39
|
"dotenv": "^16.3.1",
|
|
40
|
-
"eslint": "8.
|
|
40
|
+
"eslint": "8.47.0",
|
|
41
41
|
"eslint-config-prettier": "^9.0.0",
|
|
42
42
|
"eslint-plugin-prettier": "^5.0.0",
|
|
43
43
|
"html-webpack-plugin": "^5.5.3",
|
|
44
44
|
"husky": "^8.0.1",
|
|
45
|
-
"prettier": "^3.0.
|
|
45
|
+
"prettier": "^3.0.2",
|
|
46
46
|
"prettier-plugin-organize-imports": "^3.2.3",
|
|
47
47
|
"ts-loader": "^9.4.4",
|
|
48
48
|
"typescript": "^5.1.6",
|
package/src/MuffinAdmin.tsx
CHANGED
|
@@ -20,7 +20,7 @@ const darkTheme = createTheme({
|
|
|
20
20
|
})
|
|
21
21
|
|
|
22
22
|
export function MuffinAdmin(props: AdminOpts) {
|
|
23
|
-
const { resources, auth } = props
|
|
23
|
+
const { resources, auth, appBarLinks } = props
|
|
24
24
|
const children = resources.map((resource) =>
|
|
25
25
|
buildAdmin(["resource", resource.name], {
|
|
26
26
|
...resource,
|
|
@@ -41,7 +41,7 @@ export function MuffinAdmin(props: AdminOpts) {
|
|
|
41
41
|
}}
|
|
42
42
|
/>
|
|
43
43
|
<ToggleThemeButton lightTheme={defaultTheme} darkTheme={darkTheme} />
|
|
44
|
-
{
|
|
44
|
+
{appBarLinks.map((info) => (
|
|
45
45
|
<Tooltip key={info.url} title={info.title}>
|
|
46
46
|
<IconButton color="inherit" href={info.url}>
|
|
47
47
|
<SvgIcon component={findIcon(info.icon)} />
|
|
@@ -70,4 +70,4 @@ export function MuffinAdmin(props: AdminOpts) {
|
|
|
70
70
|
setupAdmin(["admin"], MuffinAdmin)
|
|
71
71
|
|
|
72
72
|
// Initialize login page
|
|
73
|
-
setupAdmin(["loginpage"],
|
|
73
|
+
setupAdmin(["loginpage"], Login)
|
package/src/types.ts
CHANGED
|
@@ -57,7 +57,7 @@ export type AdminOpts = {
|
|
|
57
57
|
mutationMode?: "optimistic" | "pessimistic" | "undoable"
|
|
58
58
|
}
|
|
59
59
|
apiUrl: string
|
|
60
|
-
appBarLinks: [{
|
|
60
|
+
appBarLinks: [{ url: string; title: string; icon?: string }]
|
|
61
61
|
auth: {
|
|
62
62
|
identityURL: string
|
|
63
63
|
authorizeURL: string
|