adminforth 1.2.51 → 1.2.52

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.
@@ -54,7 +54,7 @@ export default class ConfigValidator {
54
54
  if (!this.config.rootUser.password) {
55
55
  throw new Error('rootUser.password is required');
56
56
  }
57
- console.log('\n ⚠️⚠️⚠️ [INSECURE ALERT] config.rootUser is set, please create a new user and remove config.rootUser from config ASAP when you are in production\n');
57
+ console.log('\n ☝️☝️☝️ [INSECURE ALERT] config.rootUser is set, please create a new user to login in backoffice and remove config.rootUser from config ASAP when you are in production\n');
58
58
  }
59
59
  if (!this.config.customization.customComponentsDir) {
60
60
  this.config.customization.customComponentsDir = './custom';
@@ -20,13 +20,15 @@ export default class AdminForthRestAPI {
20
20
  method: 'POST',
21
21
  path: '/login',
22
22
  handler: (_a) => __awaiter(this, [_a], void 0, function* ({ body, response }) {
23
- var _b, _c, _d, _e;
23
+ var _b, _c, _d, _e, _f;
24
24
  const INVALID_MESSAGE = 'Invalid username or password';
25
25
  const { username, password } = body;
26
26
  let adminUser;
27
27
  let toReturn = { ok: true, allowedLogin: true };
28
28
  let token;
29
- if (username === this.adminforth.config.rootUser.username && password === this.adminforth.config.rootUser.password) {
29
+ if (this.adminforth.config.rootUser
30
+ && username === this.adminforth.config.rootUser.username
31
+ && password === ((_b = this.adminforth.config.rootUser) === null || _b === void 0 ? void 0 : _b.password)) {
30
32
  this.adminforth.auth.setAuthCookie({ response, username, pk: null });
31
33
  adminUser = { isRoot: true, dbUser: null, pk: null, username: this.adminforth.config.rootUser.username };
32
34
  }
@@ -46,7 +48,7 @@ export default class AdminForthRestAPI {
46
48
  });
47
49
  console.log('Adding passwordHashField to userResource', userResource);
48
50
  }
49
- const userRecord = (_b = (yield this.adminforth.connectors[userResource.dataSource].getData({
51
+ const userRecord = (_c = (yield this.adminforth.connectors[userResource.dataSource].getData({
50
52
  resource: userResource,
51
53
  filters: [
52
54
  { field: this.adminforth.config.auth.usernameField, operator: AdminForthFilterOperators.EQ, value: username },
@@ -54,7 +56,7 @@ export default class AdminForthRestAPI {
54
56
  limit: 1,
55
57
  offset: 0,
56
58
  sort: [],
57
- })).data) === null || _b === void 0 ? void 0 : _b[0];
59
+ })).data) === null || _c === void 0 ? void 0 : _c[0];
58
60
  if (!userRecord) {
59
61
  return { error: 'User not found' };
60
62
  }
@@ -70,8 +72,8 @@ export default class AdminForthRestAPI {
70
72
  if (beforeLoginConfirmation === null || beforeLoginConfirmation === void 0 ? void 0 : beforeLoginConfirmation.length) {
71
73
  for (const hook of beforeLoginConfirmation) {
72
74
  const resp = yield hook({ adminUser, response });
73
- if ((_c = resp === null || resp === void 0 ? void 0 : resp.body) === null || _c === void 0 ? void 0 : _c.redirectTo) {
74
- toReturn = { ok: resp.ok, redirectTo: (_d = resp === null || resp === void 0 ? void 0 : resp.body) === null || _d === void 0 ? void 0 : _d.redirectTo, allowedLogin: (_e = resp === null || resp === void 0 ? void 0 : resp.body) === null || _e === void 0 ? void 0 : _e.allowedLogin };
75
+ if ((_d = resp === null || resp === void 0 ? void 0 : resp.body) === null || _d === void 0 ? void 0 : _d.redirectTo) {
76
+ toReturn = { ok: resp.ok, redirectTo: (_e = resp === null || resp === void 0 ? void 0 : resp.body) === null || _e === void 0 ? void 0 : _e.redirectTo, allowedLogin: (_f = resp === null || resp === void 0 ? void 0 : resp.body) === null || _f === void 0 ? void 0 : _f.allowedLogin };
75
77
  break;
76
78
  }
77
79
  }
@@ -90,7 +92,7 @@ export default class AdminForthRestAPI {
90
92
  server.endpoint({
91
93
  method: 'POST',
92
94
  path: '/check_auth',
93
- handler: (_f) => __awaiter(this, [_f], void 0, function* ({ adminUser }) {
95
+ handler: (_g) => __awaiter(this, [_g], void 0, function* ({ adminUser }) {
94
96
  return { ok: true };
95
97
  }),
96
98
  });
@@ -98,7 +100,7 @@ export default class AdminForthRestAPI {
98
100
  noAuth: true,
99
101
  method: 'POST',
100
102
  path: '/logout',
101
- handler: (_g) => __awaiter(this, [_g], void 0, function* ({ response }) {
103
+ handler: (_h) => __awaiter(this, [_h], void 0, function* ({ response }) {
102
104
  this.adminforth.auth.removeAuthCookie(response);
103
105
  return { ok: true };
104
106
  }),
@@ -107,8 +109,8 @@ export default class AdminForthRestAPI {
107
109
  noAuth: true,
108
110
  method: 'GET',
109
111
  path: '/get_public_config',
110
- handler: (_h) => __awaiter(this, [_h], void 0, function* ({ body }) {
111
- var _j;
112
+ handler: (_j) => __awaiter(this, [_j], void 0, function* ({ body }) {
113
+ var _k;
112
114
  // find resource
113
115
  if (!this.adminforth.config.auth) {
114
116
  throw new Error('No config.auth defined');
@@ -120,7 +122,7 @@ export default class AdminForthRestAPI {
120
122
  brandName: this.adminforth.config.customization.brandName,
121
123
  usernameFieldName: usernameColumn.label,
122
124
  loginBackgroundImage: this.adminforth.config.auth.loginBackgroundImage,
123
- title: (_j = this.adminforth.config.customization) === null || _j === void 0 ? void 0 : _j.title,
125
+ title: (_k = this.adminforth.config.customization) === null || _k === void 0 ? void 0 : _k.title,
124
126
  demoCredentials: this.adminforth.config.auth.demoCredentials,
125
127
  loginPromptHTML: this.adminforth.config.auth.loginPromptHTML,
126
128
  };
@@ -129,8 +131,8 @@ export default class AdminForthRestAPI {
129
131
  server.endpoint({
130
132
  method: 'GET',
131
133
  path: '/get_base_config',
132
- handler: (_k) => __awaiter(this, [_k], void 0, function* ({ input, adminUser, cookies }) {
133
- var _l, _m;
134
+ handler: (_l) => __awaiter(this, [_l], void 0, function* ({ input, adminUser, cookies }) {
135
+ var _m, _o;
134
136
  let username = '';
135
137
  let userFullName = '';
136
138
  if (adminUser.isRoot) {
@@ -191,8 +193,8 @@ export default class AdminForthRestAPI {
191
193
  deleteConfirmation: this.adminforth.config.deleteConfirmation,
192
194
  auth: this.adminforth.config.auth,
193
195
  usernameField: this.adminforth.config.auth.usernameField,
194
- title: (_l = this.adminforth.config.customization) === null || _l === void 0 ? void 0 : _l.title,
195
- emptyFieldPlaceholder: (_m = this.adminforth.config.customization) === null || _m === void 0 ? void 0 : _m.emptyFieldPlaceholder,
196
+ title: (_m = this.adminforth.config.customization) === null || _m === void 0 ? void 0 : _m.title,
197
+ emptyFieldPlaceholder: (_o = this.adminforth.config.customization) === null || _o === void 0 ? void 0 : _o.emptyFieldPlaceholder,
196
198
  },
197
199
  adminUser,
198
200
  version: ADMINFORTH_VERSION,
@@ -231,7 +233,7 @@ export default class AdminForthRestAPI {
231
233
  server.endpoint({
232
234
  method: 'POST',
233
235
  path: '/get_resource',
234
- handler: (_o) => __awaiter(this, [_o], void 0, function* ({ body, adminUser }) {
236
+ handler: (_p) => __awaiter(this, [_p], void 0, function* ({ body, adminUser }) {
235
237
  const { resourceId } = body;
236
238
  if (!this.adminforth.statuses.dbDiscover) {
237
239
  return { error: 'Database discovery not started' };
@@ -262,8 +264,8 @@ export default class AdminForthRestAPI {
262
264
  server.endpoint({
263
265
  method: 'POST',
264
266
  path: '/get_resource_data',
265
- handler: (_p) => __awaiter(this, [_p], void 0, function* ({ body, adminUser }) {
266
- var _q, _r, _s, _t;
267
+ handler: (_q) => __awaiter(this, [_q], void 0, function* ({ body, adminUser }) {
268
+ var _r, _s, _t, _u;
267
269
  const { resourceId, source } = body;
268
270
  if (['show', 'list'].includes(source) === false) {
269
271
  return { error: 'Invalid source, should be list or show' };
@@ -283,7 +285,7 @@ export default class AdminForthRestAPI {
283
285
  if (!allowed) {
284
286
  return { error };
285
287
  }
286
- for (const hook of listify((_r = (_q = resource.hooks) === null || _q === void 0 ? void 0 : _q[source]) === null || _r === void 0 ? void 0 : _r.beforeDatasourceRequest)) {
288
+ for (const hook of listify((_s = (_r = resource.hooks) === null || _r === void 0 ? void 0 : _r[source]) === null || _s === void 0 ? void 0 : _s.beforeDatasourceRequest)) {
287
289
  const resp = yield hook({ resource, query: body, adminUser });
288
290
  if (!resp || (!resp.ok && !resp.error)) {
289
291
  throw new Error(`Hook must return object with {ok: true} or { error: 'Error' } `);
@@ -362,7 +364,7 @@ export default class AdminForthRestAPI {
362
364
  item._label = resource.recordLabel(item);
363
365
  });
364
366
  // only after adminforth made all post processing, give user ability to edit it
365
- for (const hook of listify((_t = (_s = resource.hooks) === null || _s === void 0 ? void 0 : _s[source]) === null || _t === void 0 ? void 0 : _t.afterDatasourceResponse)) {
367
+ for (const hook of listify((_u = (_t = resource.hooks) === null || _t === void 0 ? void 0 : _t[source]) === null || _u === void 0 ? void 0 : _u.afterDatasourceResponse)) {
366
368
  const resp = yield hook({ resource, response: data.data, adminUser });
367
369
  if (!resp || (!resp.ok && !resp.error)) {
368
370
  throw new Error(`Hook must return object with {ok: true} or { error: 'Error' } `);
@@ -377,8 +379,8 @@ export default class AdminForthRestAPI {
377
379
  server.endpoint({
378
380
  method: 'POST',
379
381
  path: '/get_resource_foreign_data',
380
- handler: (_u) => __awaiter(this, [_u], void 0, function* ({ body, adminUser }) {
381
- var _v, _w, _x, _y;
382
+ handler: (_v) => __awaiter(this, [_v], void 0, function* ({ body, adminUser }) {
383
+ var _w, _x, _y, _z;
382
384
  const { resourceId, column } = body;
383
385
  if (!this.adminforth.statuses.dbDiscover) {
384
386
  return { error: 'Database discovery not started' };
@@ -399,7 +401,7 @@ export default class AdminForthRestAPI {
399
401
  }
400
402
  const targetResourceId = columnConfig.foreignResource.resourceId;
401
403
  const targetResource = this.adminforth.config.resources.find((res) => res.resourceId == targetResourceId);
402
- for (const hook of listify((_w = (_v = columnConfig.foreignResource.hooks) === null || _v === void 0 ? void 0 : _v.dropdownList) === null || _w === void 0 ? void 0 : _w.beforeDatasourceRequest)) {
404
+ for (const hook of listify((_x = (_w = columnConfig.foreignResource.hooks) === null || _w === void 0 ? void 0 : _w.dropdownList) === null || _x === void 0 ? void 0 : _x.beforeDatasourceRequest)) {
403
405
  const resp = yield hook({ query: body, adminUser, resource: targetResource });
404
406
  if (!resp || (!resp.ok && !resp.error)) {
405
407
  throw new Error(`Hook must return object with {ok: true} or { error: 'Error' } `);
@@ -428,7 +430,7 @@ export default class AdminForthRestAPI {
428
430
  const response = {
429
431
  items
430
432
  };
431
- for (const hook of listify((_y = (_x = columnConfig.foreignResource.hooks) === null || _x === void 0 ? void 0 : _x.dropdownList) === null || _y === void 0 ? void 0 : _y.afterDatasourceResponse)) {
433
+ for (const hook of listify((_z = (_y = columnConfig.foreignResource.hooks) === null || _y === void 0 ? void 0 : _y.dropdownList) === null || _z === void 0 ? void 0 : _z.afterDatasourceResponse)) {
432
434
  const resp = yield hook({ response, adminUser, resource: targetResource });
433
435
  if (!resp || (!resp.ok && !resp.error)) {
434
436
  throw new Error(`Hook must return object with {ok: true} or { error: 'Error' } `);
@@ -443,7 +445,7 @@ export default class AdminForthRestAPI {
443
445
  server.endpoint({
444
446
  method: 'POST',
445
447
  path: '/get_min_max_for_columns',
446
- handler: (_z) => __awaiter(this, [_z], void 0, function* ({ body }) {
448
+ handler: (_0) => __awaiter(this, [_0], void 0, function* ({ body }) {
447
449
  const { resourceId } = body;
448
450
  if (!this.adminforth.statuses.dbDiscover) {
449
451
  return { error: 'Database discovery not started' };
@@ -472,7 +474,7 @@ export default class AdminForthRestAPI {
472
474
  server.endpoint({
473
475
  method: 'POST',
474
476
  path: '/create_record',
475
- handler: (_0) => __awaiter(this, [_0], void 0, function* ({ body, adminUser }) {
477
+ handler: (_1) => __awaiter(this, [_1], void 0, function* ({ body, adminUser }) {
476
478
  const resource = this.adminforth.config.resources.find((res) => res.resourceId == body['resourceId']);
477
479
  if (!resource) {
478
480
  return { error: `Resource '${body['resourceId']}' not found` };
@@ -496,8 +498,8 @@ export default class AdminForthRestAPI {
496
498
  server.endpoint({
497
499
  method: 'POST',
498
500
  path: '/update_record',
499
- handler: (_1) => __awaiter(this, [_1], void 0, function* ({ body, adminUser }) {
500
- var _2, _3, _4, _5;
501
+ handler: (_2) => __awaiter(this, [_2], void 0, function* ({ body, adminUser }) {
502
+ var _3, _4, _5, _6;
501
503
  const resource = this.adminforth.config.resources.find((res) => res.resourceId == body['resourceId']);
502
504
  if (!resource) {
503
505
  return { error: `Resource '${body['resourceId']}' not found` };
@@ -516,7 +518,7 @@ export default class AdminForthRestAPI {
516
518
  return { error };
517
519
  }
518
520
  // execute hook if needed
519
- for (const hook of listify((_3 = (_2 = resource.hooks) === null || _2 === void 0 ? void 0 : _2.edit) === null || _3 === void 0 ? void 0 : _3.beforeSave)) {
521
+ for (const hook of listify((_4 = (_3 = resource.hooks) === null || _3 === void 0 ? void 0 : _3.edit) === null || _4 === void 0 ? void 0 : _4.beforeSave)) {
520
522
  const resp = yield hook({ resource, record, adminUser });
521
523
  if (!resp || (!resp.ok && !resp.error)) {
522
524
  throw new Error(`Hook beforeSave must return object with {ok: true} or { error: 'Error' } `);
@@ -543,7 +545,7 @@ export default class AdminForthRestAPI {
543
545
  yield connector.updateRecord({ resource, recordId, newValues });
544
546
  }
545
547
  // execute hook if needed
546
- for (const hook of listify((_5 = (_4 = resource.hooks) === null || _4 === void 0 ? void 0 : _4.edit) === null || _5 === void 0 ? void 0 : _5.afterSave)) {
548
+ for (const hook of listify((_6 = (_5 = resource.hooks) === null || _5 === void 0 ? void 0 : _5.edit) === null || _6 === void 0 ? void 0 : _6.afterSave)) {
547
549
  const resp = yield hook({ resource, record, adminUser, oldRecord });
548
550
  if (!resp || (!resp.ok && !resp.error)) {
549
551
  throw new Error(`Hook afterSave must return object with {ok: true} or { error: 'Error' } `);
@@ -560,8 +562,8 @@ export default class AdminForthRestAPI {
560
562
  server.endpoint({
561
563
  method: 'POST',
562
564
  path: '/delete_record',
563
- handler: (_6) => __awaiter(this, [_6], void 0, function* ({ body, adminUser }) {
564
- var _7, _8, _9, _10;
565
+ handler: (_7) => __awaiter(this, [_7], void 0, function* ({ body, adminUser }) {
566
+ var _8, _9, _10, _11;
565
567
  const resource = this.adminforth.config.resources.find((res) => res.resourceId == body['resourceId']);
566
568
  const record = yield this.adminforth.connectors[resource.dataSource].getRecordByPrimaryKey(resource, body['primaryKey']);
567
569
  if (!resource) {
@@ -579,7 +581,7 @@ export default class AdminForthRestAPI {
579
581
  return { error };
580
582
  }
581
583
  // execute hook if needed
582
- for (const hook of listify((_8 = (_7 = resource.hooks) === null || _7 === void 0 ? void 0 : _7.delete) === null || _8 === void 0 ? void 0 : _8.beforeSave)) {
584
+ for (const hook of listify((_9 = (_8 = resource.hooks) === null || _8 === void 0 ? void 0 : _8.delete) === null || _9 === void 0 ? void 0 : _9.beforeSave)) {
583
585
  const resp = yield hook({ resource, record, adminUser });
584
586
  if (!resp || (!resp.ok && !resp.error)) {
585
587
  throw new Error(`Hook beforeSave must return object with {ok: true} or { error: 'Error' } `);
@@ -591,7 +593,7 @@ export default class AdminForthRestAPI {
591
593
  const connector = this.adminforth.connectors[resource.dataSource];
592
594
  yield connector.deleteRecord({ resource, recordId: body['primaryKey'] });
593
595
  // execute hook if needed
594
- for (const hook of listify((_10 = (_9 = resource.hooks) === null || _9 === void 0 ? void 0 : _9.delete) === null || _10 === void 0 ? void 0 : _10.afterSave)) {
596
+ for (const hook of listify((_11 = (_10 = resource.hooks) === null || _10 === void 0 ? void 0 : _10.delete) === null || _11 === void 0 ? void 0 : _11.afterSave)) {
595
597
  const resp = yield hook({ resource, record, adminUser });
596
598
  if (!resp || (!resp.ok && !resp.error)) {
597
599
  throw new Error(`Hook afterSave must return object with {ok: true} or { error: 'Error' } `);
@@ -608,7 +610,7 @@ export default class AdminForthRestAPI {
608
610
  server.endpoint({
609
611
  method: 'POST',
610
612
  path: '/start_bulk_action',
611
- handler: (_11) => __awaiter(this, [_11], void 0, function* ({ body, adminUser }) {
613
+ handler: (_12) => __awaiter(this, [_12], void 0, function* ({ body, adminUser }) {
612
614
  const { resourceId, actionId, recordIds } = body;
613
615
  const resource = this.adminforth.config.resources.find((res) => res.resourceId == resourceId);
614
616
  if (!resource) {
@@ -7,11 +7,11 @@ export const styles = () => ({
7
7
  lightNavbarTextHover: "alias:lightNavbarText darken", // navbar text hover
8
8
  lightNavbarTextActive: "alias:lightNavbarText darken", // navbar text active
9
9
  lightNavbarIcons: "alias:lightNavbarText opacity:0.7", // navbar icons
10
- lightSidebar: "#ffffff", // sidebar background
11
- lightSidebarBorder: "alias:lightSidebarText opacity:0.3", // sidebar right border
12
- lightSidebarItemHover: "alias:lightSidebarText opacity:0.1", // sidebar list item hover
13
- lightSidebarItemActive: "alias:lightSidebarText opacity:0.4", // sidebar list item active
14
- lightSidebarText: "#1f2937", // sidebar list item text
10
+ lightSidebar: "#f9fafb", // sidebar background
11
+ lightSidebarBorder: "alias:lightSidebarText opacity:0.05", // sidebar right border
12
+ lightSidebarItemHover: "alias:lightSidebarText opacity:0.05", // sidebar list item hover
13
+ lightSidebarItemActive: "alias:lightSidebarText opacity:0.05", // sidebar list item active
14
+ lightSidebarText: "#213045", // sidebar list item text
15
15
  lightSidebarTextHover: "alias:lightSidebarText darken", // sidebar list item text hover
16
16
  lightSidebarTextActive: "alias:lightSidebarText darken", // sidebar list item text active
17
17
  lightSidebarDevider: "alias:lightSidebarText opacity:0.3", // sidebar devider
@@ -21,7 +21,7 @@ export const styles = () => ({
21
21
  lightList: "#FFFFFF", // list view background
22
22
  lightListTable: "#FFFFFF", // list view table background
23
23
  lightListTableHeading: "alias:lightListTableHeadingText opacity:0.04", // list view table heading
24
- lightListTableHeadingText: "#333333", // list view table heading text
24
+ lightListTableHeadingText: "#43445B", // list view table heading text
25
25
  lightListTableText: "#333333", // list view table text
26
26
  lightListTableRowHover: "rgb(249 250 251)", // list view row hover
27
27
  lightListBreadcrumbsText: "#666666", // list view breadcrumbs text
@@ -87,6 +87,6 @@ export const styles = () => ({
87
87
  "headerText-size": "1rem"
88
88
  },
89
89
  borderRadius: {
90
- "default": "2px"
90
+ "default": ".5rem"
91
91
  }
92
92
  });
@@ -59,7 +59,7 @@ export default class ConfigValidator implements IConfigValidator {
59
59
  throw new Error('rootUser.password is required');
60
60
  }
61
61
 
62
- console.log('\n ⚠️⚠️⚠️ [INSECURE ALERT] config.rootUser is set, please create a new user and remove config.rootUser from config ASAP when you are in production\n');
62
+ console.log('\n ☝️☝️☝️ [INSECURE ALERT] config.rootUser is set, please create a new user to login in backoffice and remove config.rootUser from config ASAP when you are in production\n');
63
63
  }
64
64
 
65
65
  if (!this.config.customization.customComponentsDir) {
@@ -42,7 +42,10 @@ export default class AdminForthRestAPI {
42
42
  let toReturn: { ok: boolean, redirectTo?: string, allowedLogin:boolean } = { ok: true, allowedLogin:true};
43
43
 
44
44
  let token;
45
- if (username === this.adminforth.config.rootUser.username && password === this.adminforth.config.rootUser.password) {
45
+ if (this.adminforth.config.rootUser
46
+ && username === this.adminforth.config.rootUser.username
47
+ && password === this.adminforth.config.rootUser?.password
48
+ ) {
46
49
  this.adminforth.auth.setAuthCookie({ response, username, pk: null });
47
50
  adminUser = { isRoot: true, dbUser: null, pk: null, username: this.adminforth.config.rootUser.username};
48
51
  } else {
package/modules/styles.ts CHANGED
@@ -11,11 +11,11 @@ export const styles = () => ({
11
11
  lightNavbarTextActive: "alias:lightNavbarText darken", // navbar text active
12
12
  lightNavbarIcons: "alias:lightNavbarText opacity:0.7", // navbar icons
13
13
 
14
- lightSidebar: "#ffffff", // sidebar background
15
- lightSidebarBorder: "alias:lightSidebarText opacity:0.3", // sidebar right border
16
- lightSidebarItemHover: "alias:lightSidebarText opacity:0.1", // sidebar list item hover
17
- lightSidebarItemActive: "alias:lightSidebarText opacity:0.4", // sidebar list item active
18
- lightSidebarText: "#1f2937", // sidebar list item text
14
+ lightSidebar: "#f9fafb", // sidebar background
15
+ lightSidebarBorder: "alias:lightSidebarText opacity:0.05", // sidebar right border
16
+ lightSidebarItemHover: "alias:lightSidebarText opacity:0.05", // sidebar list item hover
17
+ lightSidebarItemActive: "alias:lightSidebarText opacity:0.05", // sidebar list item active
18
+ lightSidebarText: "#213045", // sidebar list item text
19
19
  lightSidebarTextHover: "alias:lightSidebarText darken", // sidebar list item text hover
20
20
  lightSidebarTextActive: "alias:lightSidebarText darken", // sidebar list item text active
21
21
  lightSidebarDevider: "alias:lightSidebarText opacity:0.3", // sidebar devider
@@ -26,7 +26,7 @@ export const styles = () => ({
26
26
  lightList: "#FFFFFF", // list view background
27
27
  lightListTable: "#FFFFFF", // list view table background
28
28
  lightListTableHeading: "alias:lightListTableHeadingText opacity:0.04", // list view table heading
29
- lightListTableHeadingText: "#333333", // list view table heading text
29
+ lightListTableHeadingText: "#43445B", // list view table heading text
30
30
  lightListTableText: "#333333", // list view table text
31
31
  lightListTableRowHover: "rgb(249 250 251)", // list view row hover
32
32
  lightListBreadcrumbsText: "#666666", // list view breadcrumbs text
@@ -103,7 +103,7 @@ export const styles = () => ({
103
103
  "headerText-size": "1rem"
104
104
  },
105
105
  borderRadius: {
106
- "default": "2px"
106
+ "default": ".5rem"
107
107
  }
108
108
  });
109
109
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adminforth",
3
- "version": "1.2.51",
3
+ "version": "1.2.52",
4
4
  "description": "OpenSource Vue3 powered forth-generation admin panel",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",