@hedhog/admin 0.0.71 → 0.0.73

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/hedhog.yaml CHANGED
@@ -1001,9 +1001,9 @@ data:
1001
1001
  en: System administrator with full access.
1002
1002
  pt: Administrador do sistema com acesso total.
1003
1003
  relations:
1004
- - role_users:
1005
- - where:
1006
- email: root@hedhog.com
1004
+ role_users:
1005
+ - where:
1006
+ email: root@hedhog.com
1007
1007
  - slug: screen-manager
1008
1008
  name:
1009
1009
  en: Screen Manager
@@ -1012,9 +1012,9 @@ data:
1012
1012
  en: Manage screens in the system.
1013
1013
  pt: Gerenciar telas no sistema.
1014
1014
  relations:
1015
- - role_users:
1016
- - where:
1017
- email: user@hedhog.com
1015
+ role_users:
1016
+ - where:
1017
+ email: user@hedhog.com
1018
1018
  - slug: admin-access
1019
1019
  name:
1020
1020
  en: Admin Access
@@ -1023,53 +1023,47 @@ data:
1023
1023
  en: Access to administrative features.
1024
1024
  pt: Acesso a funcionalidades administrativas.
1025
1025
  relations:
1026
- - role_users:
1027
- - where:
1028
- email: root@hedhog.com
1029
- - where:
1030
- email: user@hedhog.com
1026
+ role_users:
1027
+ - where:
1028
+ email: root@hedhog.com
1029
+ - where:
1030
+ email: user@hedhog.com
1031
1031
  locales:
1032
1032
  - code: en
1033
1033
  region: US
1034
- country_id:
1035
- where:
1036
- code: USA
1037
1034
  - code: pt
1038
1035
  region: BR
1039
- country_id:
1040
- where:
1041
- code: BRA
1042
1036
  translation_namespaces:
1043
1037
  - name: translation
1044
1038
  relations:
1045
- - translations:
1046
- - locale_id:
1047
- where:
1048
- code: en
1049
- name: slogan
1050
- value: Administration Panel
1051
- - locale_id:
1052
- where:
1039
+ translations:
1040
+ - locale_id:
1041
+ where:
1042
+ code: en
1043
+ name: slogan
1044
+ value: Administration Panel
1045
+ - locale_id:
1046
+ where:
1047
+ code: pt
1048
+ name: slogan
1049
+ value: Painel de Administração
1050
+ - locale_id:
1051
+ where:
1052
+ code: en
1053
+ name: en
1054
+ value: English
1055
+ - locale_id:
1056
+ where:
1057
+ code: en
1058
+ name: pt
1059
+ value: Portuguese
1060
+ - locale_id:
1061
+ where:
1062
+ code: pt
1063
+ name: en
1064
+ value: Inglês
1065
+ - locale_id:
1066
+ where:
1053
1067
  code: pt
1054
- name: slogan
1055
- value: Painel de Administração
1056
- - locale_id:
1057
- where:
1058
- code: en
1059
- name: en
1060
- value: English
1061
- - locale_id:
1062
- where:
1063
- code: en
1064
- name: pt
1065
- value: Portuguese
1066
- - locale_id:
1067
- where:
1068
- code: pt
1069
- name: en
1070
- value: Inglês
1071
- - locale_id:
1072
- where:
1073
- code: pt
1074
- name: pt
1075
- value: Português
1068
+ name: pt
1069
+ value: Português
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hedhog/admin",
3
- "version": "0.0.71",
3
+ "version": "0.0.73",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -26,7 +26,6 @@ export class Migrate implements MigrationInterface {
26
26
  name: 'locales',
27
27
  columns: [
28
28
  idColumn(),
29
- foreignColumn({ name: 'country_id' }),
30
29
  {
31
30
  name: 'code',
32
31
  type: 'char',
@@ -47,14 +46,6 @@ export class Migrate implements MigrationInterface {
47
46
  timestampColumn(),
48
47
  timestampColumn('updated_at'),
49
48
  ],
50
- foreignKeys: [
51
- {
52
- columnNames: ['country_id'],
53
- referencedColumnNames: ['id'],
54
- referencedTableName: 'countries',
55
- onDelete: 'CASCADE',
56
- },
57
- ],
58
49
  }),
59
50
  );
60
51
 
@@ -5,7 +5,6 @@ import {
5
5
  TableForeignKey,
6
6
  } from 'typeorm';
7
7
  import { foreignColumn, idColumn, timestampColumn } from '@hedhog/utils';
8
- import * as bcrypt from 'bcrypt';
9
8
 
10
9
  export class Migrate implements MigrationInterface {
11
10
  async up(queryRunner: QueryRunner) {