@hedhog/admin 0.0.108 → 0.0.109

Sign up to get free protection for your applications and to get access to all the features.
Files changed (124) hide show
  1. package/dist/admin.module.d.ts.map +1 -1
  2. package/dist/admin.module.js +1 -3
  3. package/dist/admin.module.js.map +1 -1
  4. package/dist/auth/auth.controller.d.ts.map +1 -1
  5. package/dist/auth/auth.controller.js +5 -6
  6. package/dist/auth/auth.controller.js.map +1 -1
  7. package/dist/auth/guards/auth.guard.js +2 -2
  8. package/dist/auth/guards/auth.guard.js.map +1 -1
  9. package/dist/index.d.ts +0 -7
  10. package/dist/index.d.ts.map +1 -1
  11. package/dist/index.js +0 -8
  12. package/dist/index.js.map +1 -1
  13. package/dist/menu/menu.controller.js +3 -3
  14. package/dist/menu/menu.controller.js.map +1 -1
  15. package/dist/role/guards/role.guard.d.ts.map +1 -1
  16. package/dist/role/guards/role.guard.js +3 -4
  17. package/dist/role/guards/role.guard.js.map +1 -1
  18. package/dist/role/role.controller.js +3 -3
  19. package/dist/role/role.controller.js.map +1 -1
  20. package/dist/role/role.module.js +1 -1
  21. package/dist/role/role.module.js.map +1 -1
  22. package/dist/role/role.service.d.ts +1 -1
  23. package/dist/role/role.service.d.ts.map +1 -1
  24. package/dist/role/role.service.js +1 -1
  25. package/dist/role/role.service.js.map +1 -1
  26. package/dist/route/route.controller.js +3 -3
  27. package/dist/route/route.controller.js.map +1 -1
  28. package/dist/screen/screen.controller.js +3 -3
  29. package/dist/screen/screen.controller.js.map +1 -1
  30. package/dist/setting/setting.controller.d.ts +1 -0
  31. package/dist/setting/setting.controller.d.ts.map +1 -1
  32. package/dist/setting/setting.controller.js +14 -3
  33. package/dist/setting/setting.controller.js.map +1 -1
  34. package/dist/setting/setting.module.d.ts.map +1 -1
  35. package/dist/setting/setting.module.js +2 -0
  36. package/dist/setting/setting.module.js.map +1 -1
  37. package/dist/setting/setting.service.d.ts +2 -0
  38. package/dist/setting/setting.service.d.ts.map +1 -1
  39. package/dist/setting/setting.service.js +63 -0
  40. package/dist/setting/setting.service.js.map +1 -1
  41. package/dist/user/user.controller.js +2 -2
  42. package/dist/user/user.controller.js.map +1 -1
  43. package/hedhog.yaml +1 -21
  44. package/package.json +8 -6
  45. package/src/admin.module.ts +1 -3
  46. package/src/auth/auth.controller.ts +1 -2
  47. package/src/auth/guards/auth.guard.ts +1 -1
  48. package/src/index.ts +0 -10
  49. package/src/menu/menu.controller.ts +2 -2
  50. package/src/role/guards/role.guard.ts +1 -2
  51. package/src/role/role.controller.ts +2 -2
  52. package/src/role/role.module.ts +1 -1
  53. package/src/role/role.service.ts +1 -1
  54. package/src/route/route.controller.ts +2 -2
  55. package/src/screen/screen.controller.ts +2 -2
  56. package/src/setting/setting.controller.ts +10 -3
  57. package/src/setting/setting.module.ts +2 -0
  58. package/src/setting/setting.service.ts +73 -0
  59. package/src/user/user.controller.ts +1 -1
  60. package/dist/auth/decorators/public.decorator.d.ts +0 -3
  61. package/dist/auth/decorators/public.decorator.d.ts.map +0 -1
  62. package/dist/auth/decorators/public.decorator.js +0 -8
  63. package/dist/auth/decorators/public.decorator.js.map +0 -1
  64. package/dist/locale/dto/create.dto.d.ts +0 -6
  65. package/dist/locale/dto/create.dto.d.ts.map +0 -1
  66. package/dist/locale/dto/create.dto.js +0 -29
  67. package/dist/locale/dto/create.dto.js.map +0 -1
  68. package/dist/locale/dto/delete.dto.d.ts +0 -4
  69. package/dist/locale/dto/delete.dto.d.ts.map +0 -1
  70. package/dist/locale/dto/delete.dto.js +0 -23
  71. package/dist/locale/dto/delete.dto.js.map +0 -1
  72. package/dist/locale/dto/set-enabled.dto.d.ts +0 -4
  73. package/dist/locale/dto/set-enabled.dto.d.ts.map +0 -1
  74. package/dist/locale/dto/set-enabled.dto.js +0 -24
  75. package/dist/locale/dto/set-enabled.dto.js.map +0 -1
  76. package/dist/locale/dto/update.dto.d.ts +0 -6
  77. package/dist/locale/dto/update.dto.d.ts.map +0 -1
  78. package/dist/locale/dto/update.dto.js +0 -32
  79. package/dist/locale/dto/update.dto.js.map +0 -1
  80. package/dist/locale/index.d.ts +0 -5
  81. package/dist/locale/index.d.ts.map +0 -1
  82. package/dist/locale/index.js +0 -21
  83. package/dist/locale/index.js.map +0 -1
  84. package/dist/locale/locale.controller.d.ts +0 -18
  85. package/dist/locale/locale.controller.d.ts.map +0 -1
  86. package/dist/locale/locale.controller.js +0 -127
  87. package/dist/locale/locale.controller.js.map +0 -1
  88. package/dist/locale/locale.decorator.d.ts +0 -2
  89. package/dist/locale/locale.decorator.d.ts.map +0 -1
  90. package/dist/locale/locale.decorator.js +0 -9
  91. package/dist/locale/locale.decorator.js.map +0 -1
  92. package/dist/locale/locale.middleware.d.ts +0 -10
  93. package/dist/locale/locale.middleware.d.ts.map +0 -1
  94. package/dist/locale/locale.middleware.js +0 -45
  95. package/dist/locale/locale.middleware.js.map +0 -1
  96. package/dist/locale/locale.module.d.ts +0 -5
  97. package/dist/locale/locale.module.d.ts.map +0 -1
  98. package/dist/locale/locale.module.js +0 -35
  99. package/dist/locale/locale.module.js.map +0 -1
  100. package/dist/locale/locale.service.d.ts +0 -32
  101. package/dist/locale/locale.service.d.ts.map +0 -1
  102. package/dist/locale/locale.service.js +0 -290
  103. package/dist/locale/locale.service.js.map +0 -1
  104. package/dist/locale/locale.service.spec.d.ts +0 -2
  105. package/dist/locale/locale.service.spec.d.ts.map +0 -1
  106. package/dist/locale/locale.service.spec.js +0 -174
  107. package/dist/locale/locale.service.spec.js.map +0 -1
  108. package/dist/role/decorators/role.decorator.d.ts +0 -3
  109. package/dist/role/decorators/role.decorator.d.ts.map +0 -1
  110. package/dist/role/decorators/role.decorator.js +0 -10
  111. package/dist/role/decorators/role.decorator.js.map +0 -1
  112. package/src/auth/decorators/public.decorator.ts +0 -4
  113. package/src/locale/dto/create.dto.ts +0 -12
  114. package/src/locale/dto/delete.dto.ts +0 -8
  115. package/src/locale/dto/set-enabled.dto.ts +0 -9
  116. package/src/locale/dto/update.dto.ts +0 -15
  117. package/src/locale/index.ts +0 -4
  118. package/src/locale/locale.controller.ts +0 -79
  119. package/src/locale/locale.decorator.ts +0 -8
  120. package/src/locale/locale.middleware.ts +0 -34
  121. package/src/locale/locale.module.ts +0 -23
  122. package/src/locale/locale.service.spec.ts +0 -193
  123. package/src/locale/locale.service.ts +0 -364
  124. package/src/role/decorators/role.decorator.ts +0 -7
@@ -1 +1 @@
1
- {"version":3,"file":"admin.module.d.ts","sourceRoot":"","sources":["../src/admin.module.ts"],"names":[],"mappings":"AAaA,qBAyBa,WAAW;CAAG"}
1
+ {"version":3,"file":"admin.module.d.ts","sourceRoot":"","sources":["../src/admin.module.ts"],"names":[],"mappings":"AAYA,qBAwBa,WAAW;CAAG"}
@@ -7,12 +7,11 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
7
7
  };
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
9
  exports.AdminModule = void 0;
10
- const file_1 = require("@hedhog/file");
11
10
  const pagination_1 = require("@hedhog/pagination");
12
11
  const prisma_1 = require("@hedhog/prisma");
13
12
  const common_1 = require("@nestjs/common");
14
13
  const auth_module_1 = require("./auth/auth.module");
15
- const locale_1 = require("./locale");
14
+ const locale_1 = require("@hedhog/locale");
16
15
  const menu_module_1 = require("./menu/menu.module");
17
16
  const role_module_1 = require("./role/role.module");
18
17
  const route_module_1 = require("./route/route.module");
@@ -35,7 +34,6 @@ exports.AdminModule = AdminModule = __decorate([
35
34
  (0, common_1.forwardRef)(() => setting_module_1.SettingModule),
36
35
  (0, common_1.forwardRef)(() => locale_1.LocaleModule),
37
36
  (0, common_1.forwardRef)(() => user_module_1.UserModule),
38
- (0, common_1.forwardRef)(() => file_1.FileModule),
39
37
  ],
40
38
  exports: [
41
39
  user_module_1.UserModule,
@@ -1 +1 @@
1
- {"version":3,"file":"admin.module.js","sourceRoot":"","sources":["../src/admin.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,uCAA0C;AAC1C,mDAAsD;AACtD,2CAA8C;AAC9C,2CAAoD;AACpD,oDAAgD;AAChD,qCAAwC;AAC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;IAGvB,OAAO,CAAC,QAAQ,CAAC,OAAO;gBAAP,OAAO,EAAE,WAAW;IAKjC,MAAM,CAAS,EAAE,EAAE,EAAE,EAAE,QAAQ;IAM/B,KAAK,CAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,QAAQ;;;;;;IAM3C,GAAG,CAAS,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,MAAM;;;IAMnC,MAAM,CAAS,EAAE,KAAK,EAAE,EAAE,SAAS;CAG1C"}
1
+ {"version":3,"file":"auth.controller.d.ts","sourceRoot":"","sources":["../../src/auth/auth.controller.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAErD,qBACa,cAAc;IAGvB,OAAO,CAAC,QAAQ,CAAC,OAAO;gBAAP,OAAO,EAAE,WAAW;IAKjC,MAAM,CAAS,EAAE,EAAE,EAAE,EAAE,QAAQ;IAM/B,KAAK,CAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,QAAQ;;;;;;IAM3C,GAAG,CAAS,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,MAAM;;;IAMnC,MAAM,CAAS,EAAE,KAAK,EAAE,EAAE,SAAS;CAG1C"}
@@ -14,9 +14,8 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.AuthController = void 0;
16
16
  const common_1 = require("@nestjs/common");
17
- const role_decorator_1 = require("../role/decorators/role.decorator");
17
+ const utils_1 = require("@hedhog/utils");
18
18
  const auth_service_1 = require("./auth.service");
19
- const public_decorator_1 = require("./decorators/public.decorator");
20
19
  const user_decorator_1 = require("./decorators/user.decorator");
21
20
  const forget_dto_1 = require("./dto/forget.dto");
22
21
  const login_dto_1 = require("./dto/login.dto");
@@ -40,7 +39,7 @@ let AuthController = class AuthController {
40
39
  };
41
40
  exports.AuthController = AuthController;
42
41
  __decorate([
43
- (0, role_decorator_1.Role)(),
42
+ (0, utils_1.Role)(),
44
43
  (0, common_1.Get)('verify'),
45
44
  __param(0, (0, user_decorator_1.User)()),
46
45
  __metadata("design:type", Function),
@@ -48,7 +47,7 @@ __decorate([
48
47
  __metadata("design:returntype", Promise)
49
48
  ], AuthController.prototype, "verify", null);
50
49
  __decorate([
51
- (0, public_decorator_1.Public)(),
50
+ (0, utils_1.Public)(),
52
51
  (0, common_1.Post)('login'),
53
52
  __param(0, (0, common_1.Body)()),
54
53
  __metadata("design:type", Function),
@@ -56,7 +55,7 @@ __decorate([
56
55
  __metadata("design:returntype", Promise)
57
56
  ], AuthController.prototype, "login", null);
58
57
  __decorate([
59
- (0, public_decorator_1.Public)(),
58
+ (0, utils_1.Public)(),
60
59
  (0, common_1.Post)('otp'),
61
60
  __param(0, (0, common_1.Body)()),
62
61
  __metadata("design:type", Function),
@@ -64,7 +63,7 @@ __decorate([
64
63
  __metadata("design:returntype", Promise)
65
64
  ], AuthController.prototype, "otp", null);
66
65
  __decorate([
67
- (0, public_decorator_1.Public)(),
66
+ (0, utils_1.Public)(),
68
67
  (0, common_1.Post)('forget'),
69
68
  __param(0, (0, common_1.Body)()),
70
69
  __metadata("design:type", Function),
@@ -1 +1 @@
1
- {"version":3,"file":"auth.controller.js","sourceRoot":"","sources":["../../src/auth/auth.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAOwB;AACxB,sEAAyD;AACzD,iDAA6C;AAC7C,oEAAuD;AACvD,gEAAmD;AACnD,iDAA6C;AAC7C,+CAA2C;AAC3C,2CAAuC;AAIhC,IAAM,cAAc,GAApB,MAAM,cAAc;IACzB,YAEmB,OAAoB;QAApB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AI,EAAC,OAAO,CAAC;IACD,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAsB,oBAAQ;;2CAEhD;AAIK;IAFL,IAAA,cAAM,GAAE;IACR,IAAA,aAAI,EAAC,KAAK,CAAC;IACD,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAkB,gBAAM;;yCAExC;AAIK;IAFL,IAAA,cAAM,GAAE;IACR,IAAA,aAAI,EAAC,QAAQ,CAAC;IACD,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAY,sBAAS;;4CAExC;yBA5BU,cAAc;IAD1B,IAAA,mBAAU,EAAC,MAAM,CAAC;IAGd,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,0BAAW,CAAC,CAAC,CAAA;qCACZ,0BAAW;GAH5B,cAAc,CA6B1B"}
@@ -13,14 +13,14 @@ exports.AuthGuard = void 0;
13
13
  const common_1 = require("@nestjs/common");
14
14
  const core_1 = require("@nestjs/core");
15
15
  const auth_service_1 = require("../auth.service");
16
- const public_decorator_1 = require("../decorators/public.decorator");
16
+ const utils_1 = require("@hedhog/utils");
17
17
  let AuthGuard = class AuthGuard {
18
18
  constructor(auth, reflector) {
19
19
  this.auth = auth;
20
20
  this.reflector = reflector;
21
21
  }
22
22
  async canActivate(context) {
23
- const isPublic = this.reflector.getAllAndOverride(public_decorator_1.IS_PUBLIC_KEY, [
23
+ const isPublic = this.reflector.getAllAndOverride(utils_1.IS_PUBLIC_KEY, [
24
24
  context.getHandler(),
25
25
  context.getClass(),
26
26
  ]);
@@ -1 +1 @@
1
- {"version":3,"file":"auth.guard.js","sourceRoot":"","sources":["../../../src/auth/guards/auth.guard.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAKwB;AACxB,uCAAyC;AAEzC,kDAA8C;AAC9C,qEAA+D;AAGxD,IAAM,SAAS,GAAf,MAAM,SAAS;IACpB,YACU,IAAiB,EACjB,SAAoB;QADpB,SAAI,GAAJ,IAAI,CAAa;Q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K,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;IAC/C,CAAC;CACF,CAAA;AArCY,8BAAS;oBAAT,SAAS;IADrB,IAAA,mBAAU,GAAE;qCAGK,0BAAW;QACN,gBAAS;GAHnB,SAAS,CAqCrB"}
package/dist/index.d.ts CHANGED
@@ -1,19 +1,12 @@
1
1
  export * from './admin.module';
2
2
  export * from './auth/auth.service';
3
- export * from './auth/decorators/public.decorator';
4
3
  export * from './auth/decorators/user.decorator';
5
4
  export * from './auth/guards/auth.guard';
6
5
  export * from './menu/menu.service';
7
- export * from './role/decorators/role.decorator';
8
6
  export * from './role/guards/role.guard';
9
7
  export * from './role/role.service';
10
8
  export * from './screen/screen.service';
11
9
  export * from './setting/setting.service';
12
10
  export * from './user/constants/user.constants';
13
11
  export * from './user/user.service';
14
- export * from './locale/locale.decorator';
15
- export * from './locale/locale.service';
16
- export * from './dto/delete.dto';
17
- export * from './dto/update-ids.dto';
18
- export * from './dto/with-locale.dto';
19
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,gBAAgB,CAAC;AAG/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,oCAAoC,CAAC;AACnD,cAAc,kCAAkC,CAAC;AACjD,cAAc,0BAA0B,CAAC;AAGzC,cAAc,qBAAqB,CAAC;AAGpC,cAAc,kCAAkC,CAAC;AACjD,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AAGpC,cAAc,yBAAyB,CAAC;AAGxC,cAAc,2BAA2B,CAAC;AAG1C,cAAc,iCAAiC,CAAC;AAChD,cAAc,qBAAqB,CAAC;AAGpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AAExC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,gBAAgB,CAAC;AAG/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,kCAAkC,CAAC;AACjD,cAAc,0BAA0B,CAAC;AAGzC,cAAc,qBAAqB,CAAC;AAGpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AAGpC,cAAc,yBAAyB,CAAC;AAGxC,cAAc,2BAA2B,CAAC;AAG1C,cAAc,iCAAiC,CAAC;AAChD,cAAc,qBAAqB,CAAC"}
package/dist/index.js CHANGED
@@ -18,13 +18,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
18
18
  __exportStar(require("./admin.module"), exports);
19
19
  // Auth Module
20
20
  __exportStar(require("./auth/auth.service"), exports);
21
- __exportStar(require("./auth/decorators/public.decorator"), exports);
22
21
  __exportStar(require("./auth/decorators/user.decorator"), exports);
23
22
  __exportStar(require("./auth/guards/auth.guard"), exports);
24
23
  // Menu Module
25
24
  __exportStar(require("./menu/menu.service"), exports);
26
25
  // Permission Module
27
- __exportStar(require("./role/decorators/role.decorator"), exports);
28
26
  __exportStar(require("./role/guards/role.guard"), exports);
29
27
  __exportStar(require("./role/role.service"), exports);
30
28
  // Screen Module
@@ -34,10 +32,4 @@ __exportStar(require("./setting/setting.service"), exports);
34
32
  // User Module
35
33
  __exportStar(require("./user/constants/user.constants"), exports);
36
34
  __exportStar(require("./user/user.service"), exports);
37
- // Locale Module
38
- __exportStar(require("./locale/locale.decorator"), exports);
39
- __exportStar(require("./locale/locale.service"), exports);
40
- __exportStar(require("./dto/delete.dto"), exports);
41
- __exportStar(require("./dto/update-ids.dto"), exports);
42
- __exportStar(require("./dto/with-locale.dto"), exports);
43
35
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,eAAe;AACf,iDAA+B;AAE/B,cAAc;AACd,sDAAoC;AACpC,qEAAmD;AACnD,mEAAiD;AACjD,2DAAyC;AAEzC,cAAc;AACd,sDAAoC;AAEpC,oBAAoB;AACpB,mEAAiD;AACjD,2DAAyC;AACzC,sDAAoC;AAEpC,gBAAgB;AAChB,0DAAwC;AAExC,gBAAgB;AAChB,4DAA0C;AAE1C,cAAc;AACd,kEAAgD;AAChD,sDAAoC;AAEpC,gBAAgB;AAChB,4DAA0C;AAC1C,0DAAwC;AAExC,mDAAiC;AACjC,uDAAqC;AACrC,wDAAsC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,eAAe;AACf,iDAA+B;AAE/B,cAAc;AACd,sDAAoC;AACpC,mEAAiD;AACjD,2DAAyC;AAEzC,cAAc;AACd,sDAAoC;AAEpC,oBAAoB;AACpB,2DAAyC;AACzC,sDAAoC;AAEpC,gBAAgB;AAChB,0DAAwC;AAExC,gBAAgB;AAChB,4DAA0C;AAE1C,cAAc;AACd,kEAAgD;AAChD,sDAAoC"}
@@ -18,8 +18,8 @@ const common_1 = require("@nestjs/common");
18
18
  const user_decorator_1 = require("../auth/decorators/user.decorator");
19
19
  const delete_dto_1 = require("../dto/delete.dto");
20
20
  const update_ids_dto_1 = require("../dto/update-ids.dto");
21
- const locale_1 = require("../locale");
22
- const role_decorator_1 = require("../role/decorators/role.decorator");
21
+ const locale_1 = require("@hedhog/locale");
22
+ const utils_1 = require("@hedhog/utils");
23
23
  const create_dto_1 = require("./dto/create.dto");
24
24
  const order_dto_1 = require("./dto/order.dto");
25
25
  const update_dto_1 = require("./dto/update.dto");
@@ -153,7 +153,7 @@ __decorate([
153
153
  __metadata("design:returntype", Promise)
154
154
  ], MenuController.prototype, "updateOrder", null);
155
155
  exports.MenuController = MenuController = __decorate([
156
- (0, role_decorator_1.Role)(),
156
+ (0, utils_1.Role)(),
157
157
  (0, common_1.Controller)('menu'),
158
158
  __param(0, (0, common_1.Inject)((0, common_1.forwardRef)(() => menu_service_1.MenuService))),
159
159
  __metadata("design:paramtypes", [menu_service_1.MenuService])
@@ -1 +1 @@
1
- {"version":3,"file":"menu.controller.js","sourceRoot":"","sources":["../../src/menu/menu.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,mDAAgD;AAChD,2CAWwB;AACxB,sEAAyD;AACzD,kDAA8C;AAC9C,0DAAqD;AACrD,sCAAmC;AACnC,sEAAyD;AACzD,iDAA6C;AAC7C,+CAA2C;AAC3C,iDAA6C;AAC7C,iDAA6C;AAItC,IAAM,cAAc,GAApB,MAAM,cAAc;IACzB,YAEmB,WAAwB;QAAxB,gBAAW,GAAX,WAAW,CAAa;IACxC,CAAC;IAGE,AAAN,KAAK,CAAC,aAAa,CAAS,EAAE,EAAE,EAAE,EAAY,MAAM;QAClD,OAAO,IAAI,CAAC,WAAW,CAAC,aAAa,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;IACpD,CAAC;IAGK,AAAN,KAAK,CAAC,IAAI,CAAe,gBAAgB,EAAY,MAAM;QACzD,OAAO,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;IACzD,CAAC;IAGK,AAAN,KAAK,CAAC,SAAS,CACkB,MAAc,EAC/B,gBAAgB,EACpB,MAAM;QAEhB,OAAO,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,gBAAgB,CAAC,CAAC;IACtE,CAAC;IAGK,AAAN,KAAK,CAAC,WAAW,CACgB,MAAc,EAC/B,gBAAgB,EACpB,MAAM;QAEhB,OAAO,IAAI,CAAC,WAAW,CAAC,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,gBAAgB,CAAC,CAAC;IACxE,CAAC;IAGK,AAAN,KAAK,CAAC,WAAW,CACgB,MAAc,EACrC,IAAkB;QAE1B,OAAO,IAAI,CAAC,WAAW,CAAC,WAAW,CAA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,MAAM,CAAC;IAGd,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,0BAAW,CAAC,CAAC,CAAA;qCACR,0BAAW;GAHhC,cAAc,CAgF1B"}
@@ -1 +1 @@
1
- {"version":3,"file":"role.guard.d.ts","sourceRoot":"","sources":["../../../src/role/guards/role.guard.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EACL,WAAW,EACX,gBAAgB,EAMjB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAKzC,qBACa,SAAU,YAAW,WAAW;IAEzC,OAAO,CAAC,SAAS;IAEjB,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAFf,SAAS,EAAE,SAAS,EAEX,MAAM,EAAE,aAAa;IAGlC,WAAW,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,OAAO,CAAC;IA6F9D,OAAO,CAAC,sBAAsB;CAI/B"}
1
+ {"version":3,"file":"role.guard.d.ts","sourceRoot":"","sources":["../../../src/role/guards/role.guard.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EACL,WAAW,EACX,gBAAgB,EAMjB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAIzC,qBACa,SAAU,YAAW,WAAW;IAEzC,OAAO,CAAC,SAAS;IAEjB,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAFf,SAAS,EAAE,SAAS,EAEX,MAAM,EAAE,aAAa;IAGlC,WAAW,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,OAAO,CAAC;IA6F9D,OAAO,CAAC,sBAAsB;CAI/B"}
@@ -17,8 +17,7 @@ const prisma_1 = require("@hedhog/prisma");
17
17
  const common_1 = require("@nestjs/common");
18
18
  const constants_1 = require("@nestjs/common/constants");
19
19
  const core_1 = require("@nestjs/core");
20
- const public_decorator_1 = require("../../auth/decorators/public.decorator");
21
- const role_decorator_1 = require("../decorators/role.decorator");
20
+ const utils_1 = require("@hedhog/utils");
22
21
  let RoleGuard = class RoleGuard {
23
22
  constructor(reflector, prisma) {
24
23
  this.reflector = reflector;
@@ -26,14 +25,14 @@ let RoleGuard = class RoleGuard {
26
25
  }
27
26
  async canActivate(context) {
28
27
  var _a, _b;
29
- const isPublic = this.reflector.getAllAndOverride(public_decorator_1.IS_PUBLIC_KEY, [
28
+ const isPublic = this.reflector.getAllAndOverride(utils_1.IS_PUBLIC_KEY, [
30
29
  context.getHandler(),
31
30
  context.getClass(),
32
31
  ]);
33
32
  if (isPublic) {
34
33
  return true;
35
34
  }
36
- const withRole = this.reflector.getAllAndOverride(role_decorator_1.WITH_ROLE, [
35
+ const withRole = this.reflector.getAllAndOverride(utils_1.WITH_ROLE, [
37
36
  context.getHandler(),
38
37
  context.getClass(),
39
38
  ]);
@@ -1 +1 @@
1
- {"version":3,"file":"role.guard.js","sourceRoot":"","sources":["../../../src/role/guards/role.guard.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA+C;AAC/C,2CAQwB;AACxB,wDAA2D;AAC3D,uCAAyC;AAEzC,6EAAuE;AACvE,iEAAyD;AAGlD,IAAM,SAAS,GAAf,MAAM,SAAS;IACpB,YACU,SAAoB,EAEX,MAAqB;QAF9B,cAAS,GAAT,SAAS,CAAW;QAEX,WAAM,GAAN,MAAM,CAAe;IACrC,CAAC;IAEJ,KAAK,CAAC,WAAW,CAAC,OAAyB;;QACzC,MAAM,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,iBAAiB,CAAU,gCAAa,EAAE;YACxE,OAAO,CAAC,UAAU,EAAE;YACpB,OAAO,CAAC,QAAQ,EAAE;SACnB,CAAC,CAAC;QAEH,IAAI,QAAQ,EAAE,CAAC;YACb,OAAO,IAAI,CAAC;QACd,CAAC;QA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
  const delete_dto_1 = require("../dto/delete.dto");
19
19
  const update_ids_dto_1 = require("../dto/update-ids.dto");
20
- const locale_1 = require("../locale");
21
- const role_decorator_1 = require("../role/decorators/role.decorator");
20
+ const locale_1 = require("@hedhog/locale");
21
+ const utils_1 = require("@hedhog/utils");
22
22
  const create_dto_1 = require("./dto/create.dto");
23
23
  const update_dto_1 = require("./dto/update.dto");
24
24
  const role_service_1 = require("./role.service");
@@ -175,7 +175,7 @@ __decorate([
175
175
  __metadata("design:returntype", Promise)
176
176
  ], RoleController.prototype, "delete", null);
177
177
  exports.RoleController = RoleController = __decorate([
178
- (0, role_decorator_1.Role)(),
178
+ (0, utils_1.Role)(),
179
179
  (0, common_1.Controller)('role'),
180
180
  __param(0, (0, common_1.Inject)((0, common_1.forwardRef)(() => role_service_1.RoleService))),
181
181
  __metadata("design:paramtypes", [role_service_1.RoleService])
@@ -1 +1 @@
1
- {"version":3,"file":"role.controller.js","sourceRoot":"","sources":["../../src/role/role.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,mDAAgD;AAChD,2CAWwB;AACxB,kDAA8C;AAC9C,0DAAqD;AACrD,sCAAmC;AACnC,sEAAyD;AACzD,iDAA6C;AAC7C,iDAA6C;AAC7C,iDAA6C;AAItC,IAAM,cAAc,GAApB,MAAM,cAAc;IACzB,YAEmB,WAAwB;QAAxB,gBAAW,GAAX,WAAW,CAAa;IACxC,CAAC;IAGE,AAAN,KAAK,CAAC,IAAI,CAAe,gBAAgB,EAAY,MAAM;QACzD,OAAO,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;IACzD,CAAC;IAGK,AAAN,KAAK,CAAC,SAAS,CACC,gBAAgB,EACC,MAAc;QAE7C,OAAO,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;IAC9D,CAAC;IAGK,AAAN,KAAK,CAAC,SAAS,CACC,gBAAgB,EACC,MAAc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AAC,iBAAiB,CAAC;IAEtB,WAAA,IAAA,cAAK,EAAC,QAAQ,EAAE,qBAAY,CAAC,CAAA;IAC7B,WAAA,IAAA,aAAI,GAAE,CAAA;;6CAAO,6BAAY;;mDAG3B;AAGK;IADL,IAAA,YAAG,EAAC,SAAS,CAAC;IACH,WAAA,IAAA,cAAK,EAAC,QAAQ,EAAE,qBAAY,CAAC,CAAA;IAAkB,WAAA,IAAA,eAAM,GAAE,CAAA;;;;0CAElE;AAGK;IADL,IAAA,aAAI,GAAE;IACO,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAO,sBAAS;;4CAEnC;AAGK;IADL,IAAA,cAAK,EAAC,SAAS,CAAC;IAEd,WAAA,IAAA,cAAK,EAAC,QAAQ,EAAE,qBAAY,CAAC,CAAA;IAC7B,WAAA,IAAA,aAAI,GAAE,CAAA;;6CAAO,sBAAS;;4CAMxB;AAGK;IADL,IAAA,eAAM,GAAE;IACK,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAO,sBAAS;;4CAEnC;yBArGU,cAAc;IAF1B,IAAA,YAAI,GAAE;IACN,IAAA,mBAAU,EAAC,MAAM,CAAC;IAGd,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,0BAAW,CAAC,CAAC,CAAA;qCACR,0BAAW;GAHhC,cAAc,CAsG1B"}
@@ -12,7 +12,7 @@ const prisma_1 = require("@hedhog/prisma");
12
12
  const common_1 = require("@nestjs/common");
13
13
  const core_1 = require("@nestjs/core");
14
14
  const auth_module_1 = require("../auth/auth.module");
15
- const locale_1 = require("../locale");
15
+ const locale_1 = require("@hedhog/locale");
16
16
  const role_guard_1 = require("./guards/role.guard");
17
17
  const role_controller_1 = require("./role.controller");
18
18
  const role_service_1 = require("./role.service");
@@ -1 +1 @@
1
- {"version":3,"file":"role.module.js","sourceRoot":"","sources":["../../src/role/role.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,mDAAsD;AACtD,2CAA8C;AAC9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WAAW,EAAE,CAAC,gCAAc,CAAC;QAC7B,SAAS,EAAE;YACT,0BAAW;YACX;gBACE,OAAO,EAAE,gBAAS;gBAClB,QAAQ,EAAE,sBAAS;aACpB;SACF;QACD,OAAO,EAAE,CAAC,0BAAW,CAAC;KACvB,CAAC;GACW,UAAU,CAAG"}
@@ -2,7 +2,7 @@ import { PaginationDTO, PaginationService } from '@hedhog/pagination';
2
2
  import { PrismaService } from '@hedhog/prisma';
3
3
  import { DeleteDTO } from '../dto/delete.dto';
4
4
  import { UpdateIdsDTO } from '../dto/update-ids.dto';
5
- import { LocaleService } from '../locale';
5
+ import { LocaleService } from '@hedhog/locale';
6
6
  import { CreateDTO } from './dto/create.dto';
7
7
  import { UpdateDTO } from './dto/update.dto';
8
8
  export declare class RoleService {
@@ -1 +1 @@
1
- {"version":3,"file":"role.service.d.ts","sourceRoot":"","sources":["../../src/role/role.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAQ/C,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,qBACa,WAAW;IAGpB,OAAO,CAAC,QAAQ,CAAC,aAAa;IAE9B,OAAO,CAAC,QAAQ,CAAC,iBAAiB;IAElC,OAAO,CAAC,QAAQ,CAAC,aAAa;gBAJb,aAAa,EAAE,aAAa,EAE5B,iBAAiB,EAAE,iBAAiB,EAEpC,aAAa,EAAE,aAAa;IAGzC,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE,EAAE,YA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MAAM,CAAC,EAAE,GAAG,EAAE,EAAE,SAAS;CAehC"}
@@ -17,7 +17,7 @@ const pagination_1 = require("@hedhog/pagination");
17
17
  const prisma_1 = require("@hedhog/prisma");
18
18
  const utils_1 = require("@hedhog/utils");
19
19
  const common_1 = require("@nestjs/common");
20
- const locale_1 = require("../locale");
20
+ const locale_1 = require("@hedhog/locale");
21
21
  let RoleService = class RoleService {
22
22
  constructor(prismaService, paginationService, localeService) {
23
23
  this.prismaService = prismaService;
@@ -1 +1 @@
1
- {"version":3,"file":"role.service.js","sourceRoot":"","sources":["../../src/role/role.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,mDAAsE;AACtE,2CAA+C;AAC/C,yCAA8C;AAC9C,2CAKwB;AAGxB,sCAA0C;AAKnC,IAAM,WAAW,GAAjB,MAAM,WAAW;IACtB,YAEmB,aAA4B,EAE5B,iBAAoC,EAEpC,aAA4B;QAJ5B,kBAAa,GAAb,aAAa,CAAe;QAE5B,sBAAiB,GAAjB,iBAAiB,CAAmB;QAEpC,kBAAa,GAAb,aAAa,CAAe;IAC5C,CAAC;IAEJ,KAAK,CAAC,WAAW,CAAC,MAAc,EAAE,EAAE,GAAG,EAAgB;QACrD,MAAM,IAAI,CAAC,aAAa,CAAC,SAAS,CAAC,UAAU,CAAC;YAC5C,KAAK,EAAE;gBACL,OAAO,EAAE,MAAM;aAChB;SACF,CAAC,CAAC;QAEH,OAAO,IAAI,CAAC,aAAa,CAAC,SAAS,CAAC,UAAU,CAAC;YAC7C,IAAI,EAAE,GAAG,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;gBACzB,OAAO,EAAE,MAAM;gBACf,OAAO,EAAE,MAAM;aAChB,CAAC,CAAC;YACH,cAAc,EAAE,IAAI;SACrB,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,aAAa,CAAC,MAAc,EAAE,IAAkB;QACpD,MAAM,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC,UA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AAC,CAAA;IAE3C,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,sBAAa,CAAC,CAAC,CAAA;qCAHR,sBAAa;QAET,8BAAiB;QAErB,sBAAa;GAPpC,WAAW,CA6RvB"}
@@ -17,8 +17,8 @@ const pagination_1 = require("@hedhog/pagination");
17
17
  const common_1 = require("@nestjs/common");
18
18
  const delete_dto_1 = require("../dto/delete.dto");
19
19
  const update_ids_dto_1 = require("../dto/update-ids.dto");
20
- const locale_1 = require("../locale");
21
- const role_decorator_1 = require("../role/decorators/role.decorator");
20
+ const locale_1 = require("@hedhog/locale");
21
+ const utils_1 = require("@hedhog/utils");
22
22
  const create_dto_1 = require("./dto/create.dto");
23
23
  const update_dto_1 = require("./dto/update.dto");
24
24
  const route_service_1 = require("./route.service");
@@ -126,7 +126,7 @@ __decorate([
126
126
  __metadata("design:returntype", Promise)
127
127
  ], RouteController.prototype, "updateScreens", null);
128
128
  exports.RouteController = RouteController = __decorate([
129
- (0, role_decorator_1.Role)(),
129
+ (0, utils_1.Role)(),
130
130
  (0, common_1.Controller)('route'),
131
131
  __param(0, (0, common_1.Inject)((0, common_1.forwardRef)(() => route_service_1.RouteService))),
132
132
  __metadata("design:paramtypes", [route_service_1.RouteService])
@@ -1 +1 @@
1
- {"version":3,"file":"route.controller.js","sourceRoot":"","sources":["../../src/route/route.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,mDAA+D;AAC/D,2CAWwB;AACxB,kDAA8C;AAC9C,0DAAqD;AACrD,sCAAmC;AACnC,sEAAyD;AACzD,iDAA6C;AAC7C,iDAA6C;AAC7C,mDAA+C;AAIxC,IAAM,eAAe,GAArB,MAAM,eAAe;IAC1B,YAEmB,YAA0B;QAA1B,iBAAY,GAAZ,YAAY,CAAc;IAC1C,CAAC;IAGE,AAAN,KAAK,CAAC,IAAI,CAAe,gBAAgB;QACvC,OAAO,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,gBAA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M,GAAE;IACK,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAO,sBAAS;;6CAEnC;AAGK;IADL,IAAA,YAAG,EAAC,eAAe,CAAC;IAElB,WAAA,IAAA,cAAK,EAAC,SAAS,EAAE,qBAAY,CAAC,CAAA;IAC9B,WAAA,IAAA,uBAAU,GAAE,CAAA;IACZ,WAAA,IAAA,eAAM,GAAE,CAAA;;6CADuB,0BAAa;;gDAI9C;AAGK;IADL,IAAA,cAAK,EAAC,eAAe,CAAC;IAEpB,WAAA,IAAA,cAAK,EAAC,SAAS,EAAE,qBAAY,CAAC,CAAA;IAC9B,WAAA,IAAA,aAAI,GAAE,CAAA;;6CAAO,6BAAY;;kDAG3B;AAGK;IADL,IAAA,YAAG,EAAC,kBAAkB,CAAC;IAErB,WAAA,IAAA,cAAK,EAAC,SAAS,EAAE,qBAAY,CAAC,CAAA;IAC9B,WAAA,IAAA,uBAAU,GAAE,CAAA;IACZ,WAAA,IAAA,eAAM,GAAE,CAAA;;6CADuB,0BAAa;;kDAI9C;AAGK;IADL,IAAA,cAAK,EAAC,kBAAkB,CAAC;IAEvB,WAAA,IAAA,cAAK,EAAC,SAAS,EAAE,qBAAY,CAAC,CAAA;IAC9B,WAAA,IAAA,aAAI,GAAE,CAAA;;6CAAO,6BAAY;;oDAG3B;0BAlEU,eAAe;IAF3B,IAAA,YAAI,GAAE;IACN,IAAA,mBAAU,EAAC,OAAO,CAAC;IAGf,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC,CAAC,CAAA;qCACR,4BAAY;GAHlC,eAAe,CAmE3B"}
@@ -17,8 +17,8 @@ const pagination_1 = require("@hedhog/pagination");
17
17
  const common_1 = require("@nestjs/common");
18
18
  const delete_dto_1 = require("../dto/delete.dto");
19
19
  const update_ids_dto_1 = require("../dto/update-ids.dto");
20
- const locale_1 = require("../locale");
21
- const role_decorator_1 = require("../role/decorators/role.decorator");
20
+ const locale_1 = require("@hedhog/locale");
21
+ const utils_1 = require("@hedhog/utils");
22
22
  const create_dto_1 = require("./dto/create.dto");
23
23
  const update_dto_1 = require("./dto/update.dto");
24
24
  const screen_service_1 = require("./screen.service");
@@ -129,7 +129,7 @@ __decorate([
129
129
  __metadata("design:returntype", Promise)
130
130
  ], ScreenController.prototype, "delete", null);
131
131
  exports.ScreenController = ScreenController = __decorate([
132
- (0, role_decorator_1.Role)(),
132
+ (0, utils_1.Role)(),
133
133
  (0, common_1.Controller)('screen'),
134
134
  __param(0, (0, common_1.Inject)((0, common_1.forwardRef)(() => screen_service_1.ScreenService))),
135
135
  __metadata("design:paramtypes", [screen_service_1.ScreenService])
@@ -1 +1 @@
1
- {"version":3,"file":"screen.controller.js","sourceRoot":"","sources":["../../src/screen/screen.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,mDAAgD;AAChD,2CAWwB;AACxB,kDAA8C;AAC9C,0DAAqD;AACrD,sCAAmC;AACnC,sEAAyD;AACzD,iDAA6C;AAC7C,iDAA6C;AAC7C,qDAAiD;AAI1C,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAC3B,YAEmB,aAA4B;QAA5B,kBAAa,GAAb,aAAa,CAAe;IAC5C,CAAC;IAGE,AAAN,KAAK,CAAC,IAAI,CAAe,gBAAgB,EAAY,MAAM;QACzD,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;IAC3D,CAAC;IAGK,AAAN,KAAK,CAAC,SAAS,CACoB,QAAgB,EACnC,gBAAgB,EACpB,MAAM;QAEhB,OAAO,IAAI,CAAC,aAAa,CAAC,SAAS,CAAC,MAAM,EAAE,QAAQ,EAAE,gBAAgB,CAAC,CAAC;IAC1E,CAAC;IAGK,AAAN,KAAK,CAAC,UAAU,CACmB,QAAgB,EACnC,gBAAgB;QAE9B,OAAO,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC,QAAQ,EAAE,gBAAgB,CAAC,CAAC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IACC,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAO,sBAAS;;8CAE7B;AAGK;IADL,IAAA,cAAK,EAAC,WAAW,CAAC;IAEhB,WAAA,IAAA,cAAK,EAAC,UAAU,EAAE,qBAAY,CAAC,CAAA;IAC/B,WAAA,IAAA,aAAI,GAAE,CAAA;;6CAAO,sBAAS;;8CAMxB;AAGK;IADL,IAAA,eAAM,GAAE;IACK,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAO,sBAAS;;8CAEnC;2BApEU,gBAAgB;IAF5B,IAAA,YAAI,GAAE;IACN,IAAA,mBAAU,EAAC,QAAQ,CAAC;IAGhB,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,8BAAa,CAAC,CAAC,CAAA;qCACR,8BAAa;GAHpC,gBAAgB,CAqE5B"}
@@ -8,6 +8,7 @@ export declare class SettingsController {
8
8
  private readonly settingService;
9
9
  constructor(settingService: SettingService);
10
10
  getSettingFromGroup(paginationParams: any, locale: any, slug: string): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
11
+ appearanceCSS(res: any): Promise<any>;
11
12
  listSettingGroups(paginationParams: any, locale: any): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
12
13
  listSettings(paginationParams: any, locale: any): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
13
14
  show(settingId: number): Promise<any>;
@@ -1 +1 @@
1
- {"version":3,"file":"setting.controller.d.ts","sourceRoot":"","sources":["../../src/setting/setting.controller.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAG9C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,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AAE,MAAM;IAWvB,aAAa,CAAQ,GAAG,KAAA;IAKxB,iBAAiB,CAAe,gBAAgB,KAAA,EAAY,MAAM,KAAA;IAKlE,YAAY,CAAe,gBAAgB,KAAA,EAAY,MAAM,KAAA;IAK7D,IAAI,CAAmC,SAAS,EAAE,MAAM;IAKxD,MAAM,CAAS,IAAI,EAAE,SAAS;IAK9B,kBAAkB,CACP,IAAI,EAAE,MAAM,EACnB,EAAE,KAAK,EAAE,EAAE,cAAc,EACzB,EAAE,EAAE,EAAE;;KAAA;IAMV,cAAc,CAAgB,IAAI,EAAE,MAAM,EAAU,IAAI,EAAE,SAAS;IAKnE,eAAe,CAAS,IAAI,EAAE,UAAU;;;IAKxC,MAAM,CACwB,SAAS,EAAE,MAAM,EAC3C,IAAI,EAAE,SAAS;IASnB,MAAM,CAAS,IAAI,EAAE,SAAS;CAGrC"}
@@ -15,10 +15,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.SettingsController = void 0;
16
16
  const pagination_1 = require("@hedhog/pagination");
17
17
  const common_1 = require("@nestjs/common");
18
+ const locale_1 = require("@hedhog/locale");
19
+ const utils_1 = require("@hedhog/utils");
18
20
  const user_decorator_1 = require("../auth/decorators/user.decorator");
19
21
  const delete_dto_1 = require("../dto/delete.dto");
20
- const locale_1 = require("../locale");
21
- const role_decorator_1 = require("../role/decorators/role.decorator");
22
22
  const create_dto_1 = require("./dto/create.dto");
23
23
  const setting_user_dto_1 = require("./dto/setting-user.dto");
24
24
  const setting_dto_1 = require("./dto/setting.dto");
@@ -31,6 +31,9 @@ let SettingsController = class SettingsController {
31
31
  async getSettingFromGroup(paginationParams, locale, slug) {
32
32
  return this.settingService.getSettingFromGroup(locale, paginationParams, slug);
33
33
  }
34
+ async appearanceCSS(res) {
35
+ return this.settingService.getAppearanceCSS(res);
36
+ }
34
37
  async listSettingGroups(paginationParams, locale) {
35
38
  return this.settingService.listSettingGroups(locale, paginationParams);
36
39
  }
@@ -72,6 +75,14 @@ __decorate([
72
75
  __metadata("design:paramtypes", [Object, Object, String]),
73
76
  __metadata("design:returntype", Promise)
74
77
  ], SettingsController.prototype, "getSettingFromGroup", null);
78
+ __decorate([
79
+ (0, utils_1.Public)(),
80
+ (0, common_1.Get)('appearance.css'),
81
+ __param(0, (0, common_1.Res)()),
82
+ __metadata("design:type", Function),
83
+ __metadata("design:paramtypes", [Object]),
84
+ __metadata("design:returntype", Promise)
85
+ ], SettingsController.prototype, "appearanceCSS", null);
75
86
  __decorate([
76
87
  (0, common_1.Get)('group'),
77
88
  __param(0, (0, pagination_1.Pagination)()),
@@ -142,7 +153,7 @@ __decorate([
142
153
  __metadata("design:returntype", Promise)
143
154
  ], SettingsController.prototype, "delete", null);
144
155
  exports.SettingsController = SettingsController = __decorate([
145
- (0, role_decorator_1.Role)(),
156
+ (0, utils_1.Role)(),
146
157
  (0, common_1.Controller)('setting'),
147
158
  __param(0, (0, common_1.Inject)((0, common_1.forwardRef)(() => setting_service_1.SettingService))),
148
159
  __metadata("design:paramtypes", [setting_service_1.SettingService])
@@ -1 +1 @@
1
- {"version":3,"file":"setting.controller.js","sourceRoot":"","sources":["../../src/setting/setting.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,mDAAgD;AAChD,2CAYwB;AACxB,sEAAyD;AACzD,kDAA8C;AAC9C,sCAAmC;AACnC,sEAAyD;AACzD,iDAA6C;AAC7C,6DAAwD;AACxD,mDAA+C;AAC/C,iDAA6C;AAC7C,uDAAmD;AAI5C,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAC7B,YAEmB,cAA8B;QAA9B,mBAAc,GAAd,cAAc,CAAgB;IAC9C,CAAC;IAGE,AAAN,KAAK,CAAC,mBAAmB,CACT,gBAAgB,EACpB,MAAM,EACD,IAAY;QAE3B,OAAO,IAAI,CAAC,cAAc,CAAC,mBAAmB,CAC5C,MAAM,EACN,gBAAgB,EAChB,IAAI,CACL,CAAC;IACJ,CAAC;IAGK,AAAN,KAAK,CAAC,i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AE;IACK,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAO,sBAAS;;gDAEnC;6BA9EU,kBAAkB;IAF9B,IAAA,YAAI,GAAE;IACN,IAAA,mBAAU,EAAC,SAAS,CAAC;IAGjB,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,gCAAc,CAAC,CAAC,CAAA;qCACR,gCAAc;GAHtC,kBAAkB,CA+E9B"}
@@ -1 +1 @@
1
- {"version":3,"file":"setting.module.d.ts","sourceRoot":"","sources":["../../src/setting/setting.module.ts"],"names":[],"mappings":"AAOA,qBAUa,aAAa;CAAG"}
1
+ {"version":3,"file":"setting.module.d.ts","sourceRoot":"","sources":["../../src/setting/setting.module.ts"],"names":[],"mappings":"AAQA,qBAWa,aAAa;CAAG"}
@@ -7,6 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
7
7
  };
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
9
  exports.SettingModule = void 0;
10
+ const file_1 = require("@hedhog/file");
10
11
  const pagination_1 = require("@hedhog/pagination");
11
12
  const prisma_1 = require("@hedhog/prisma");
12
13
  const common_1 = require("@nestjs/common");
@@ -25,6 +26,7 @@ exports.SettingModule = SettingModule = __decorate([
25
26
  (0, common_1.forwardRef)(() => auth_module_1.AuthModule),
26
27
  (0, common_1.forwardRef)(() => prisma_1.PrismaModule),
27
28
  (0, common_1.forwardRef)(() => pagination_1.PaginationModule),
29
+ (0, common_1.forwardRef)(() => file_1.FileModule),
28
30
  ],
29
31
  })
30
32
  ], SettingModule);
@@ -1 +1 @@
1
- {"version":3,"file":"setting.module.js","sourceRoot":"","sources":["../../src/setting/setting.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,mDAAsD;AACtD,2CAA8C;AAC9C,2CAAoD;AACpD,qDAAiD;AACjD,6DAA0D;AAC1D,uDAAmD;AAY5C,IAAM,aAAa,GAAnB,MAAM,aAAa;CAAG,CAAA;AAAhB,sCAAa;wBAAb,aAAa;IAVzB,IAAA,eAAM,EAAC;QACN,SAAS,EAAE,CAAC,gCAAc,CAAC;QAC3B,OAAO,EAAE,CAAC,gCAAc,CAAC;QACzB,WAAW,EAAE,CAAC,uCAAkB,CAAC;QACjC,OAAO,EAAE;YACP,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,wBAAU,CAAC;YAC5B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,qBAAY,CAAC;YAC9B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,6BAAgB,CAAC;SACnC;KACF,CAAC;GACW,aAAa,CAAG"}
1
+ {"version":3,"file":"setting.module.js","sourceRoot":"","sources":["../../src/setting/setting.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,uCAA0C;AAC1C,mDAAsD;AACtD,2CAA8C;AAC9C,2CAAoD;AACpD,qDAAiD;AACjD,6DAA0D;AAC1D,uDAAmD;AAa5C,IAAM,aAAa,GAAnB,MAAM,aAAa;CAAG,CAAA;AAAhB,sCAAa;wBAAb,aAAa;IAXzB,IAAA,eAAM,EAAC;QACN,SAAS,EAAE,CAAC,gCAAc,CAAC;QAC3B,OAAO,EAAE,CAAC,gCAAc,CAAC;QACzB,WAAW,EAAE,CAAC,uCAAkB,CAAC;QACjC,OAAO,EAAE;YACP,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,wBAAU,CAAC;YAC5B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,qBAAY,CAAC;YAC9B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,6BAAgB,CAAC;YAClC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,iBAAU,CAAC;SAC7B;KACF,CAAC;GACW,aAAa,CAAG"}
@@ -1,6 +1,7 @@
1
1
  import { FileService } from '@hedhog/file';
2
2
  import { PaginationDTO, PaginationService } from '@hedhog/pagination';
3
3
  import { PrismaService } from '@hedhog/prisma';
4
+ import { Response } from 'express';
4
5
  import { DeleteDTO } from '../dto/delete.dto';
5
6
  import { CreateDTO } from './dto/create.dto';
6
7
  import { SettingDTO } from './dto/setting.dto';
@@ -10,6 +11,7 @@ export declare class SettingService {
10
11
  private readonly paginationService;
11
12
  private readonly fileService;
12
13
  constructor(prismaService: PrismaService, paginationService: PaginationService, fileService: FileService);
14
+ getAppearanceCSS(res: Response): Promise<any>;
13
15
  updateAppearanceSettings(): Promise<void>;
14
16
  setManySettings(data: SettingDTO): Promise<{
15
17
  success: boolean;