@appxdigital/appx-core-cli 1.0.10 → 1.0.11
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/package.json
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import {AdminConfigType} from '@appxdigital/appx-core';
|
|
2
|
-
import {ComponentLoader} from 'adminjs';
|
|
3
|
-
|
|
4
|
-
const componentLoader = new ComponentLoader();
|
|
5
|
-
|
|
6
|
-
export const AdminConfig: AdminConfigType = {
|
|
7
|
-
componentLoader,
|
|
8
|
-
adminRoles: ['ADMIN'],
|
|
9
|
-
resources: [
|
|
10
|
-
{
|
|
11
|
-
name: 'User',
|
|
12
|
-
},
|
|
13
|
-
],
|
|
14
|
-
rootPath: '/admin',
|
|
15
|
-
branding: {
|
|
16
|
-
companyName: 'AppX Core',
|
|
17
|
-
logo: 'https://appx-website-assets.fra1.cdn.digitaloceanspaces.com/2024/04/logo_color.svg',
|
|
18
|
-
},
|
|
19
|
-
// As you can see below, you can customize the dashboard component, which is the first page you see when you access the AdminJS
|
|
20
|
-
dashboard: {
|
|
21
|
-
component: componentLoader.add(
|
|
22
|
-
'Dashboard',
|
|
23
|
-
'../backoffice/components/dashboard',
|
|
24
|
-
),
|
|
25
|
-
},
|
|
26
|
-
};
|
|
1
|
+
import {AdminConfigType} from '@appxdigital/appx-core';
|
|
2
|
+
import {ComponentLoader} from 'adminjs';
|
|
3
|
+
|
|
4
|
+
const componentLoader = new ComponentLoader();
|
|
5
|
+
|
|
6
|
+
export const AdminConfig: AdminConfigType = {
|
|
7
|
+
componentLoader,
|
|
8
|
+
adminRoles: ['ADMIN'],
|
|
9
|
+
resources: [
|
|
10
|
+
{
|
|
11
|
+
name: 'User',
|
|
12
|
+
},
|
|
13
|
+
],
|
|
14
|
+
rootPath: '/admin',
|
|
15
|
+
branding: {
|
|
16
|
+
companyName: 'AppX Core',
|
|
17
|
+
logo: 'https://appx-website-assets.fra1.cdn.digitaloceanspaces.com/2024/04/logo_color.svg',
|
|
18
|
+
},
|
|
19
|
+
// As you can see below, you can customize the dashboard component, which is the first page you see when you access the AdminJS
|
|
20
|
+
dashboard: {
|
|
21
|
+
component: componentLoader.add(
|
|
22
|
+
'Dashboard',
|
|
23
|
+
'../backoffice/components/dashboard',
|
|
24
|
+
),
|
|
25
|
+
},
|
|
26
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
export const Dashboard = () => {
|
|
4
|
-
// Redirect to Users resource
|
|
5
|
-
window.location.href = window.location.href + '/resources/User';
|
|
6
|
-
|
|
7
|
-
return null;
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
export default Dashboard;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
export const Dashboard = () => {
|
|
4
|
+
// Redirect to Users resource
|
|
5
|
+
window.location.href = window.location.href + '/resources/User';
|
|
6
|
+
|
|
7
|
+
return null;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export default Dashboard;
|