@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,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@appxdigital/appx-core-cli",
4
- "version": "1.0.10",
4
+ "version": "1.0.11",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
7
  "npm:publish": "npm publish --access public",
@@ -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;
package/wizard.js CHANGED
@@ -431,7 +431,7 @@ model User {
431
431
  model Session {
432
432
  id String @id
433
433
  sid String @unique
434
- data String
434
+ data String @db.Text
435
435
  expiresAt DateTime
436
436
  userId Int?
437
437
  }