@hedhog/admin 0.0.109 → 0.0.110
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/admin.module.d.ts.map +1 -1
- package/dist/admin.module.js +0 -3
- package/dist/admin.module.js.map +1 -1
- package/dist/auth/auth.controller.d.ts.map +1 -1
- package/dist/auth/auth.controller.js +1 -2
- package/dist/auth/auth.controller.js.map +1 -1
- package/dist/index.d.ts +0 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -3
- package/dist/index.js.map +1 -1
- package/dist/menu/menu.controller.d.ts.map +1 -1
- package/dist/menu/menu.controller.js +1 -2
- package/dist/menu/menu.controller.js.map +1 -1
- package/dist/role/dto/create.dto.d.ts +1 -1
- package/dist/role/dto/create.dto.d.ts.map +1 -1
- package/dist/role/dto/create.dto.js +2 -2
- package/dist/role/dto/create.dto.js.map +1 -1
- package/hedhog.yaml +0 -307
- package/package.json +3 -3
- package/src/admin.module.ts +0 -3
- package/src/auth/auth.controller.ts +1 -2
- package/src/index.ts +0 -4
- package/src/menu/menu.controller.ts +1 -2
- package/src/role/dto/create.dto.ts +1 -1
- package/dist/auth/decorators/user.decorator.d.ts +0 -2
- package/dist/auth/decorators/user.decorator.d.ts.map +0 -1
- package/dist/auth/decorators/user.decorator.js +0 -12
- package/dist/auth/decorators/user.decorator.js.map +0 -1
- package/dist/dto/with-locale.dto.d.ts +0 -4
- package/dist/dto/with-locale.dto.d.ts.map +0 -1
- package/dist/dto/with-locale.dto.js +0 -23
- package/dist/dto/with-locale.dto.js.map +0 -1
- package/dist/setting/dto/create.dto.d.ts +0 -3
- package/dist/setting/dto/create.dto.d.ts.map +0 -1
- package/dist/setting/dto/create.dto.js +0 -7
- package/dist/setting/dto/create.dto.js.map +0 -1
- package/dist/setting/dto/setting-user.dto.d.ts +0 -4
- package/dist/setting/dto/setting-user.dto.d.ts.map +0 -1
- package/dist/setting/dto/setting-user.dto.js +0 -21
- package/dist/setting/dto/setting-user.dto.js.map +0 -1
- package/dist/setting/dto/setting.dto.d.ts +0 -9
- package/dist/setting/dto/setting.dto.d.ts.map +0 -1
- package/dist/setting/dto/setting.dto.js +0 -34
- package/dist/setting/dto/setting.dto.js.map +0 -1
- package/dist/setting/dto/update.dto.d.ts +0 -4
- package/dist/setting/dto/update.dto.d.ts.map +0 -1
- package/dist/setting/dto/update.dto.js +0 -8
- package/dist/setting/dto/update.dto.js.map +0 -1
- package/dist/setting/setting.controller.d.ts +0 -26
- package/dist/setting/setting.controller.d.ts.map +0 -1
- package/dist/setting/setting.controller.js +0 -161
- package/dist/setting/setting.controller.js.map +0 -1
- package/dist/setting/setting.module.d.ts +0 -3
- package/dist/setting/setting.module.d.ts.map +0 -1
- package/dist/setting/setting.module.js +0 -33
- package/dist/setting/setting.module.js.map +0 -1
- package/dist/setting/setting.service.d.ts +0 -33
- package/dist/setting/setting.service.d.ts.map +0 -1
- package/dist/setting/setting.service.js +0 -377
- package/dist/setting/setting.service.js.map +0 -1
- package/dist/setting/setting.service.spec.d.ts +0 -2
- package/dist/setting/setting.service.spec.d.ts.map +0 -1
- package/dist/setting/setting.service.spec.js +0 -162
- package/dist/setting/setting.service.spec.js.map +0 -1
- package/src/auth/decorators/user.decorator.ts +0 -17
- package/src/dto/with-locale.dto.ts +0 -8
- package/src/setting/dto/create.dto.ts +0 -1
- package/src/setting/dto/setting-user.dto.ts +0 -6
- package/src/setting/dto/setting.dto.ts +0 -17
- package/src/setting/dto/update.dto.ts +0 -3
- package/src/setting/setting.controller.ts +0 -107
- package/src/setting/setting.module.ts +0 -20
- package/src/setting/setting.service.spec.ts +0 -183
- package/src/setting/setting.service.ts +0 -457
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"admin.module.d.ts","sourceRoot":"","sources":["../src/admin.module.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"admin.module.d.ts","sourceRoot":"","sources":["../src/admin.module.ts"],"names":[],"mappings":"AAWA,qBAsBa,WAAW;CAAG"}
|
package/dist/admin.module.js
CHANGED
@@ -16,7 +16,6 @@ const menu_module_1 = require("./menu/menu.module");
|
|
16
16
|
const role_module_1 = require("./role/role.module");
|
17
17
|
const route_module_1 = require("./route/route.module");
|
18
18
|
const screen_module_1 = require("./screen/screen.module");
|
19
|
-
const setting_module_1 = require("./setting/setting.module");
|
20
19
|
const user_module_1 = require("./user/user.module");
|
21
20
|
let AdminModule = class AdminModule {
|
22
21
|
};
|
@@ -31,7 +30,6 @@ exports.AdminModule = AdminModule = __decorate([
|
|
31
30
|
(0, common_1.forwardRef)(() => route_module_1.RouteModule),
|
32
31
|
(0, common_1.forwardRef)(() => prisma_1.PrismaModule),
|
33
32
|
(0, common_1.forwardRef)(() => screen_module_1.ScreenModule),
|
34
|
-
(0, common_1.forwardRef)(() => setting_module_1.SettingModule),
|
35
33
|
(0, common_1.forwardRef)(() => locale_1.LocaleModule),
|
36
34
|
(0, common_1.forwardRef)(() => user_module_1.UserModule),
|
37
35
|
],
|
@@ -41,7 +39,6 @@ exports.AdminModule = AdminModule = __decorate([
|
|
41
39
|
route_module_1.RouteModule,
|
42
40
|
role_module_1.RoleModule,
|
43
41
|
menu_module_1.MenuModule,
|
44
|
-
setting_module_1.SettingModule,
|
45
42
|
screen_module_1.ScreenModule,
|
46
43
|
locale_1.LocaleModule,
|
47
44
|
],
|
package/dist/admin.module.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"admin.module.js","sourceRoot":"","sources":["../src/admin.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,mDAAsD;AACtD,2CAA8C;AAC9C,2CAAoD;AACpD,oDAAgD;AAChD,2CAA8C;AAC9C,oDAAgD;AAChD,oDAAgD;AAChD,uDAAmD;AACnD,0DAAsD;AACtD,
|
1
|
+
{"version":3,"file":"admin.module.js","sourceRoot":"","sources":["../src/admin.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,mDAAsD;AACtD,2CAA8C;AAC9C,2CAAoD;AACpD,oDAAgD;AAChD,2CAA8C;AAC9C,oDAAgD;AAChD,oDAAgD;AAChD,uDAAmD;AACnD,0DAAsD;AACtD,oDAAgD;AAwBzC,IAAM,WAAW,GAAjB,MAAM,WAAW;CAAG,CAAA;AAAd,kCAAW;sBAAX,WAAW;IAtBvB,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,wBAAU,CAAC;YAC5B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,wBAAU,CAAC;YAC5B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,6BAAgB,CAAC;YAClC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,wBAAU,CAAC;YAC5B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,0BAAW,CAAC;YAC7B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,qBAAY,CAAC;YAC9B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;YAC9B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,qBAAY,CAAC;YAC9B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,wBAAU,CAAC;SAC7B;QACD,OAAO,EAAE;YACP,wBAAU;YACV,wBAAU;YACV,0BAAW;YACX,wBAAU;YACV,wBAAU;YACV,4BAAY;YACZ,qBAAY;SACb;KACF,CAAC;GACW,WAAW,CAAG"}
|
@@ -1 +1 @@
|
|
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;
|
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;AAC7C,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"}
|
@@ -16,7 +16,6 @@ exports.AuthController = void 0;
|
|
16
16
|
const common_1 = require("@nestjs/common");
|
17
17
|
const utils_1 = require("@hedhog/utils");
|
18
18
|
const auth_service_1 = require("./auth.service");
|
19
|
-
const user_decorator_1 = require("./decorators/user.decorator");
|
20
19
|
const forget_dto_1 = require("./dto/forget.dto");
|
21
20
|
const login_dto_1 = require("./dto/login.dto");
|
22
21
|
const otp_dto_1 = require("./dto/otp.dto");
|
@@ -41,7 +40,7 @@ exports.AuthController = AuthController;
|
|
41
40
|
__decorate([
|
42
41
|
(0, utils_1.Role)(),
|
43
42
|
(0, common_1.Get)('verify'),
|
44
|
-
__param(0, (0,
|
43
|
+
__param(0, (0, utils_1.User)()),
|
45
44
|
__metadata("design:type", Function),
|
46
45
|
__metadata("design:paramtypes", [Object]),
|
47
46
|
__metadata("design:returntype", Promise)
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"auth.controller.js","sourceRoot":"","sources":["../../src/auth/auth.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAOwB;AACxB,
|
1
|
+
{"version":3,"file":"auth.controller.js","sourceRoot":"","sources":["../../src/auth/auth.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAOwB;AACxB,yCAAmD;AACnD,iDA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,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"}
|
package/dist/index.d.ts
CHANGED
@@ -1,12 +1,10 @@
|
|
1
1
|
export * from './admin.module';
|
2
2
|
export * from './auth/auth.service';
|
3
|
-
export * from './auth/decorators/user.decorator';
|
4
3
|
export * from './auth/guards/auth.guard';
|
5
4
|
export * from './menu/menu.service';
|
6
5
|
export * from './role/guards/role.guard';
|
7
6
|
export * from './role/role.service';
|
8
7
|
export * from './screen/screen.service';
|
9
|
-
export * from './setting/setting.service';
|
10
8
|
export * from './user/constants/user.constants';
|
11
9
|
export * from './user/user.service';
|
12
10
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
@@ -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,
|
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,0BAA0B,CAAC;AAGzC,cAAc,qBAAqB,CAAC;AAGpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AAGpC,cAAc,yBAAyB,CAAC;AAGxC,cAAc,iCAAiC,CAAC;AAChD,cAAc,qBAAqB,CAAC"}
|
package/dist/index.js
CHANGED
@@ -18,7 +18,6 @@ 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/user.decorator"), exports);
|
22
21
|
__exportStar(require("./auth/guards/auth.guard"), exports);
|
23
22
|
// Menu Module
|
24
23
|
__exportStar(require("./menu/menu.service"), exports);
|
@@ -27,8 +26,6 @@ __exportStar(require("./role/guards/role.guard"), exports);
|
|
27
26
|
__exportStar(require("./role/role.service"), exports);
|
28
27
|
// Screen Module
|
29
28
|
__exportStar(require("./screen/screen.service"), exports);
|
30
|
-
// Screen Module
|
31
|
-
__exportStar(require("./setting/setting.service"), exports);
|
32
29
|
// User Module
|
33
30
|
__exportStar(require("./user/constants/user.constants"), exports);
|
34
31
|
__exportStar(require("./user/user.service"), exports);
|
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,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,eAAe;AACf,iDAA+B;AAE/B,cAAc;AACd,sDAAoC;AACpC,2DAAyC;AAEzC,cAAc;AACd,sDAAoC;AAEpC,oBAAoB;AACpB,2DAAyC;AACzC,sDAAoC;AAEpC,gBAAgB;AAChB,0DAAwC;AAExC,cAAc;AACd,kEAAgD;AAChD,sDAAoC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"menu.controller.d.ts","sourceRoot":"","sources":["../../src/menu/menu.controller.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"menu.controller.d.ts","sourceRoot":"","sources":["../../src/menu/menu.controller.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAGrD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,qBAEa,cAAc;IAGvB,OAAO,CAAC,QAAQ,CAAC,WAAW;gBAAX,WAAW,EAAE,WAAW;IAIrC,aAAa,CAAS,EAAE,EAAE,EAAE;;KAAA,EAAY,MAAM,KAAA;IAK9C,IAAI,CAAe,gBAAgB,KAAA,EAAY,MAAM,KAAA;IAKrD,SAAS,CACkB,MAAM,EAAE,MAAM,EAC/B,gBAAgB,KAAA,EACpB,MAAM,KAAA;IAMZ,WAAW,CACgB,MAAM,EAAE,MAAM,EAC/B,gBAAgB,KAAA,EACpB,MAAM,KAAA;IAMZ,WAAW,CACgB,MAAM,EAAE,MAAM,EACrC,IAAI,EAAE,YAAY;IAMtB,aAAa,CACc,MAAM,EAAE,MAAM,EACrC,IAAI,EAAE,YAAY;IAMtB,IAAI,CAAgC,MAAM,EAAE,MAAM;IAKlD,MAAM,CAAS,IAAI,EAAE,SAAS;IAK9B,MAAM,CACqB,MAAM,EAAE,MAAM,EACrC,IAAI,EAAE,SAAS;IASnB,MAAM,CAAS,IAAI,EAAE,SAAS;IAK9B,WAAW,CAAS,IAAI,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;CAGzD"}
|
@@ -15,7 +15,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.MenuController = void 0;
|
16
16
|
const pagination_1 = require("@hedhog/pagination");
|
17
17
|
const common_1 = require("@nestjs/common");
|
18
|
-
const user_decorator_1 = require("../auth/decorators/user.decorator");
|
19
18
|
const delete_dto_1 = require("../dto/delete.dto");
|
20
19
|
const update_ids_dto_1 = require("../dto/update-ids.dto");
|
21
20
|
const locale_1 = require("@hedhog/locale");
|
@@ -68,7 +67,7 @@ let MenuController = class MenuController {
|
|
68
67
|
exports.MenuController = MenuController;
|
69
68
|
__decorate([
|
70
69
|
(0, common_1.Get)('system'),
|
71
|
-
__param(0, (0,
|
70
|
+
__param(0, (0, utils_1.User)()),
|
72
71
|
__param(1, (0, locale_1.Locale)()),
|
73
72
|
__metadata("design:type", Function),
|
74
73
|
__metadata("design:paramtypes", [Object, Object]),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"menu.controller.js","sourceRoot":"","sources":["../../src/menu/menu.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,mDAAgD;AAChD,2CAWwB;AACxB,
|
1
|
+
{"version":3,"file":"menu.controller.js","sourceRoot":"","sources":["../../src/menu/menu.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,mDAAgD;AAChD,2CAWwB;AACxB,kDAA8C;AAC9C,0DAAqD;AACrD,2CAAwC;AACxC,yCAA2C;AAC3C,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,K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;IADL,IAAA,eAAM,GAAE;IACK,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAO,sBAAS;;4CAEnC;AAGK;IADL,IAAA,cAAK,EAAC,OAAO,CAAC;IACI,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAO,oBAAQ;;iDAEvC;yBA/EU,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,CAgF1B"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"create.dto.d.ts","sourceRoot":"","sources":["../../../src/role/dto/create.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"create.dto.d.ts","sourceRoot":"","sources":["../../../src/role/dto/create.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE/C,qBAAa,SAAU,SAAQ,aAAa;IAE1C,IAAI,EAAE,MAAM,CAAC;CACd"}
|
@@ -11,8 +11,8 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
12
12
|
exports.CreateDTO = void 0;
|
13
13
|
const class_validator_1 = require("class-validator");
|
14
|
-
const
|
15
|
-
class CreateDTO extends
|
14
|
+
const locale_1 = require("@hedhog/locale");
|
15
|
+
class CreateDTO extends locale_1.WithLocaleDTO {
|
16
16
|
}
|
17
17
|
exports.CreateDTO = CreateDTO;
|
18
18
|
__decorate([
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"create.dto.js","sourceRoot":"","sources":["../../../src/role/dto/create.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2C;AAC3C
|
1
|
+
{"version":3,"file":"create.dto.js","sourceRoot":"","sources":["../../../src/role/dto/create.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2C;AAC3C,2CAA+C;AAE/C,MAAa,SAAU,SAAQ,sBAAa;CAG3C;AAHD,8BAGC;AADC;IADC,IAAA,0BAAQ,GAAE;;uCACE"}
|
package/hedhog.yaml
CHANGED
@@ -1161,200 +1161,6 @@ data:
|
|
1161
1161
|
code: pt
|
1162
1162
|
name: pt
|
1163
1163
|
value: Português
|
1164
|
-
setting_group:
|
1165
|
-
- slug: localization
|
1166
|
-
icon: world
|
1167
|
-
name:
|
1168
|
-
en: Localization
|
1169
|
-
pt: Localização
|
1170
|
-
description:
|
1171
|
-
en: Configure the localization setting.
|
1172
|
-
pt: Configurar as definições de localização.
|
1173
|
-
relations:
|
1174
|
-
setting:
|
1175
|
-
- slug: language
|
1176
|
-
type: string
|
1177
|
-
name:
|
1178
|
-
en: Default Language
|
1179
|
-
pt: Idioma Padrão
|
1180
|
-
description:
|
1181
|
-
en: The system default language, each user can have their own preferred language
|
1182
|
-
pt: O idioma padrão do sistema, cada usuário pode ter o seu próprio idioma preferido
|
1183
|
-
value: en
|
1184
|
-
user_override: true
|
1185
|
-
- slug: timezone
|
1186
|
-
type: string
|
1187
|
-
name:
|
1188
|
-
en: Timezone
|
1189
|
-
pt: Fuso Horário
|
1190
|
-
description:
|
1191
|
-
en: The timezone to use
|
1192
|
-
pt: O fuso horário a utilizar
|
1193
|
-
value: UTC
|
1194
|
-
user_override: true
|
1195
|
-
- slug: appearance
|
1196
|
-
icon: palette
|
1197
|
-
name:
|
1198
|
-
en: Appearance
|
1199
|
-
pt: Aparência
|
1200
|
-
description:
|
1201
|
-
en: Configure the appearance setting.
|
1202
|
-
pt: Configurar as definições de aparência.
|
1203
|
-
relations:
|
1204
|
-
setting:
|
1205
|
-
- slug: theme-primary
|
1206
|
-
type: string
|
1207
|
-
name:
|
1208
|
-
en: Primary Color
|
1209
|
-
pt: Cor Primária
|
1210
|
-
description:
|
1211
|
-
en: The primary color to use
|
1212
|
-
pt: A cor primária a utilizar
|
1213
|
-
value: '#000000'
|
1214
|
-
- slug: theme-primary-foreground
|
1215
|
-
type: string
|
1216
|
-
name:
|
1217
|
-
en: Primary Color Foreground
|
1218
|
-
pt: Contraste da Cor Primária
|
1219
|
-
description:
|
1220
|
-
en: The primary color foreground to use
|
1221
|
-
pt: O contraste da cor primária a utilizar
|
1222
|
-
value: '#ffffff'
|
1223
|
-
- slug: theme-secondary
|
1224
|
-
type: string
|
1225
|
-
name:
|
1226
|
-
en: Secondary Color
|
1227
|
-
pt: Cor Secundária
|
1228
|
-
description:
|
1229
|
-
en: The secondary color to use
|
1230
|
-
pt: A cor secundária a utilizar
|
1231
|
-
value: '#FFFFFF'
|
1232
|
-
- slug: theme-secondary-foreground
|
1233
|
-
type: string
|
1234
|
-
name:
|
1235
|
-
en: Secondary Color Foreground
|
1236
|
-
pt: Contraste da Cor Secundária
|
1237
|
-
description:
|
1238
|
-
en: The secondary color foreground to use
|
1239
|
-
pt: O contraste da cor secundária a utilizar
|
1240
|
-
value: '#000000'
|
1241
|
-
- slug: theme-accent
|
1242
|
-
type: string
|
1243
|
-
name:
|
1244
|
-
en: Accent Color
|
1245
|
-
pt: Cor de Realce
|
1246
|
-
description:
|
1247
|
-
en: The accent color to use
|
1248
|
-
pt: A cor de realce a utilizar
|
1249
|
-
value: '#FF0000'
|
1250
|
-
- slug: theme-accent-foreground
|
1251
|
-
type: string
|
1252
|
-
name:
|
1253
|
-
en: Accent Color Foreground
|
1254
|
-
pt: Contraste da Cor de Realce
|
1255
|
-
description:
|
1256
|
-
en: The accent color foreground to use
|
1257
|
-
pt: O contraste da cor de realce a utilizar
|
1258
|
-
value: '#000000'
|
1259
|
-
- slug: theme-background
|
1260
|
-
type: string
|
1261
|
-
name:
|
1262
|
-
en: Background Color
|
1263
|
-
pt: Cor de Fundo
|
1264
|
-
description:
|
1265
|
-
en: The background color to use
|
1266
|
-
pt: A cor de fundo a utilizar
|
1267
|
-
value: '#FFFFFF'
|
1268
|
-
- slug: theme-background-foreground
|
1269
|
-
type: string
|
1270
|
-
name:
|
1271
|
-
en: Background Color Foreground
|
1272
|
-
pt: Contraste da Cor de Fundo
|
1273
|
-
description:
|
1274
|
-
en: The background color foreground to use
|
1275
|
-
pt: O contraste da cor de fundo a utilizar
|
1276
|
-
value: '#000000'
|
1277
|
-
- slug: theme-muted
|
1278
|
-
type: string
|
1279
|
-
name:
|
1280
|
-
en: Muted Color
|
1281
|
-
pt: Cor Suave
|
1282
|
-
description:
|
1283
|
-
en: The muted color to use
|
1284
|
-
pt: A cor suave a utilizar
|
1285
|
-
value: '#F0F0F0'
|
1286
|
-
- slug: theme-muted-foreground
|
1287
|
-
type: string
|
1288
|
-
name:
|
1289
|
-
en: Muted Color Foreground
|
1290
|
-
pt: Contraste da Cor Suave
|
1291
|
-
description:
|
1292
|
-
en: The muted color foreground to use
|
1293
|
-
pt: O contraste da cor suave a utilizar
|
1294
|
-
value: '#000000'
|
1295
|
-
- slug: theme-radius
|
1296
|
-
type: string
|
1297
|
-
name:
|
1298
|
-
en: Radius
|
1299
|
-
pt: Raio
|
1300
|
-
description:
|
1301
|
-
en: The radius to use
|
1302
|
-
pt: O raio a utilizar
|
1303
|
-
value: '0.5'
|
1304
|
-
- slug: theme-font
|
1305
|
-
type: string
|
1306
|
-
name:
|
1307
|
-
en: Font Family
|
1308
|
-
pt: Família de Fontes
|
1309
|
-
description:
|
1310
|
-
en: The font to use
|
1311
|
-
pt: A fonte a utilizar
|
1312
|
-
value: 'Arial, sans-serif'
|
1313
|
-
- slug: theme-text-size
|
1314
|
-
type: string
|
1315
|
-
name:
|
1316
|
-
en: Text Size
|
1317
|
-
pt: Tamanho do Texto
|
1318
|
-
description:
|
1319
|
-
en: Text size of the application
|
1320
|
-
pt: Tamanho do texto da aplicação
|
1321
|
-
value: '1'
|
1322
|
-
- slug: theme-muted-saturation
|
1323
|
-
type: string
|
1324
|
-
name:
|
1325
|
-
en: Muted Color Saturation
|
1326
|
-
pt: Saturação da Cor Suave
|
1327
|
-
description:
|
1328
|
-
en: Saturação da Cor Suave a utilizar
|
1329
|
-
pt: Muted Color Saturation to use
|
1330
|
-
value: '100'
|
1331
|
-
- slug: theme-muted-lightness
|
1332
|
-
type: string
|
1333
|
-
name:
|
1334
|
-
en: Muted Color Lightness
|
1335
|
-
pt: Luminância da Cor Suave
|
1336
|
-
description:
|
1337
|
-
en: Luminância da Cor Suave a utilizar
|
1338
|
-
pt: Muted Color Lightness to use
|
1339
|
-
value: '100'
|
1340
|
-
- slug: theme-light-dark-enabled
|
1341
|
-
type: boolean
|
1342
|
-
name:
|
1343
|
-
en: Light/Dark Themes Enabled
|
1344
|
-
pt: Tema Claro/Escuro Habilitado
|
1345
|
-
description:
|
1346
|
-
en: Enable or disable toggling of light/dark themes
|
1347
|
-
pt: Habilite ou desabilite a troca de tema claro/escuro
|
1348
|
-
value: true
|
1349
|
-
- slug: theme-light-dark-default
|
1350
|
-
type: string
|
1351
|
-
name:
|
1352
|
-
en: Default Theme
|
1353
|
-
pt: Tema Padrão
|
1354
|
-
description:
|
1355
|
-
en: System default theme
|
1356
|
-
pt: Tema Padrão do sistema
|
1357
|
-
value: 'dark'
|
1358
1164
|
|
1359
1165
|
tables:
|
1360
1166
|
country:
|
@@ -1696,116 +1502,3 @@ tables:
|
|
1696
1502
|
- type: created_at
|
1697
1503
|
- type: updated_at
|
1698
1504
|
ifNotExists: true
|
1699
|
-
|
1700
|
-
setting_group:
|
1701
|
-
columns:
|
1702
|
-
- type: pk
|
1703
|
-
- name: icon
|
1704
|
-
length: 31
|
1705
|
-
- type: slug
|
1706
|
-
- type: created_at
|
1707
|
-
- type: updated_at
|
1708
|
-
ifNotExists: true
|
1709
|
-
|
1710
|
-
setting_group_locale:
|
1711
|
-
columns:
|
1712
|
-
- name: locale_id
|
1713
|
-
type: fk
|
1714
|
-
isPrimary: true
|
1715
|
-
references:
|
1716
|
-
table: locale
|
1717
|
-
column: id
|
1718
|
-
onDelete: CASCADE
|
1719
|
-
- name: group_id
|
1720
|
-
type: fk
|
1721
|
-
isPrimary: true
|
1722
|
-
references:
|
1723
|
-
table: setting_group
|
1724
|
-
column: id
|
1725
|
-
onDelete: CASCADE
|
1726
|
-
- name: name
|
1727
|
-
length: 63
|
1728
|
-
- name: description
|
1729
|
-
length: 255
|
1730
|
-
isNullable: true
|
1731
|
-
- type: created_at
|
1732
|
-
- type: updated_at
|
1733
|
-
ifNotExists: true
|
1734
|
-
|
1735
|
-
setting:
|
1736
|
-
columns:
|
1737
|
-
- type: pk
|
1738
|
-
- name: group_id
|
1739
|
-
type: fk
|
1740
|
-
references:
|
1741
|
-
table: setting_group
|
1742
|
-
column: id
|
1743
|
-
onDelete: CASCADE
|
1744
|
-
- type: slug
|
1745
|
-
- name: type
|
1746
|
-
type: enum
|
1747
|
-
enum:
|
1748
|
-
- string
|
1749
|
-
- array
|
1750
|
-
- number
|
1751
|
-
- boolean
|
1752
|
-
- json
|
1753
|
-
default: string
|
1754
|
-
- name: value
|
1755
|
-
length: 1023
|
1756
|
-
isNullable: true
|
1757
|
-
- name: user_override
|
1758
|
-
type: boolean
|
1759
|
-
default: false
|
1760
|
-
- type: created_at
|
1761
|
-
- type: updated_at
|
1762
|
-
ifNotExists: true
|
1763
|
-
|
1764
|
-
setting_locale:
|
1765
|
-
columns:
|
1766
|
-
- name: locale_id
|
1767
|
-
type: fk
|
1768
|
-
isPrimary: true
|
1769
|
-
references:
|
1770
|
-
table: locale
|
1771
|
-
column: id
|
1772
|
-
onDelete: CASCADE
|
1773
|
-
- name: setting_id
|
1774
|
-
type: fk
|
1775
|
-
isPrimary: true
|
1776
|
-
references:
|
1777
|
-
table: setting
|
1778
|
-
column: id
|
1779
|
-
onDelete: CASCADE
|
1780
|
-
- name: description
|
1781
|
-
length: 255
|
1782
|
-
isNullable: true
|
1783
|
-
- name: name
|
1784
|
-
length: 63
|
1785
|
-
isNullable: true
|
1786
|
-
- type: created_at
|
1787
|
-
- type: updated_at
|
1788
|
-
ifNotExists: true
|
1789
|
-
|
1790
|
-
setting_user:
|
1791
|
-
columns:
|
1792
|
-
- name: user_id
|
1793
|
-
type: fk
|
1794
|
-
isPrimary: true
|
1795
|
-
references:
|
1796
|
-
table: user
|
1797
|
-
column: id
|
1798
|
-
onDelete: CASCADE
|
1799
|
-
- name: setting_id
|
1800
|
-
type: fk
|
1801
|
-
isPrimary: true
|
1802
|
-
references:
|
1803
|
-
table: setting
|
1804
|
-
column: id
|
1805
|
-
onDelete: CASCADE
|
1806
|
-
- name: value
|
1807
|
-
length: 1023
|
1808
|
-
isNullable: true
|
1809
|
-
- type: created_at
|
1810
|
-
- type: updated_at
|
1811
|
-
ifNotExists: true
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@hedhog/admin",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.110",
|
4
4
|
"private": false,
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"scripts": {
|
@@ -23,10 +23,10 @@
|
|
23
23
|
"devDependencies": {
|
24
24
|
"@hedhog/file": "^0.0.24",
|
25
25
|
"@hedhog/mail": "latest",
|
26
|
-
"@hedhog/locale": "^0.0.
|
26
|
+
"@hedhog/locale": "^0.0.17",
|
27
27
|
"@hedhog/pagination": "^0.0.17",
|
28
28
|
"@hedhog/prisma": "^0.0.11",
|
29
|
-
"@hedhog/utils": "^0.0.
|
29
|
+
"@hedhog/utils": "^0.0.21",
|
30
30
|
"@nestjs/mapped-types": "^2.0.5",
|
31
31
|
"ts-node": "^10.9.1",
|
32
32
|
"typescript": "^5.1.3"
|
package/src/admin.module.ts
CHANGED
@@ -7,7 +7,6 @@ import { MenuModule } from './menu/menu.module';
|
|
7
7
|
import { RoleModule } from './role/role.module';
|
8
8
|
import { RouteModule } from './route/route.module';
|
9
9
|
import { ScreenModule } from './screen/screen.module';
|
10
|
-
import { SettingModule } from './setting/setting.module';
|
11
10
|
import { UserModule } from './user/user.module';
|
12
11
|
|
13
12
|
@Module({
|
@@ -19,7 +18,6 @@ import { UserModule } from './user/user.module';
|
|
19
18
|
forwardRef(() => RouteModule),
|
20
19
|
forwardRef(() => PrismaModule),
|
21
20
|
forwardRef(() => ScreenModule),
|
22
|
-
forwardRef(() => SettingModule),
|
23
21
|
forwardRef(() => LocaleModule),
|
24
22
|
forwardRef(() => UserModule),
|
25
23
|
],
|
@@ -29,7 +27,6 @@ import { UserModule } from './user/user.module';
|
|
29
27
|
RouteModule,
|
30
28
|
RoleModule,
|
31
29
|
MenuModule,
|
32
|
-
SettingModule,
|
33
30
|
ScreenModule,
|
34
31
|
LocaleModule,
|
35
32
|
],
|
@@ -6,9 +6,8 @@ import {
|
|
6
6
|
Inject,
|
7
7
|
Post,
|
8
8
|
} from '@nestjs/common';
|
9
|
-
import { Role, Public } from '@hedhog/utils';
|
9
|
+
import { Role, Public, User } from '@hedhog/utils';
|
10
10
|
import { AuthService } from './auth.service';
|
11
|
-
import { User } from './decorators/user.decorator';
|
12
11
|
import { ForgetDTO } from './dto/forget.dto';
|
13
12
|
import { LoginDTO } from './dto/login.dto';
|
14
13
|
import { OtpDTO } from './dto/otp.dto';
|
package/src/index.ts
CHANGED
@@ -3,7 +3,6 @@ export * from './admin.module';
|
|
3
3
|
|
4
4
|
// Auth Module
|
5
5
|
export * from './auth/auth.service';
|
6
|
-
export * from './auth/decorators/user.decorator';
|
7
6
|
export * from './auth/guards/auth.guard';
|
8
7
|
|
9
8
|
// Menu Module
|
@@ -16,9 +15,6 @@ export * from './role/role.service';
|
|
16
15
|
// Screen Module
|
17
16
|
export * from './screen/screen.service';
|
18
17
|
|
19
|
-
// Screen Module
|
20
|
-
export * from './setting/setting.service';
|
21
|
-
|
22
18
|
// User Module
|
23
19
|
export * from './user/constants/user.constants';
|
24
20
|
export * from './user/user.service';
|
@@ -11,11 +11,10 @@ import {
|
|
11
11
|
Post,
|
12
12
|
forwardRef,
|
13
13
|
} from '@nestjs/common';
|
14
|
-
import { User } from '../auth/decorators/user.decorator';
|
15
14
|
import { DeleteDTO } from '../dto/delete.dto';
|
16
15
|
import { UpdateIdsDTO } from '../dto/update-ids.dto';
|
17
16
|
import { Locale } from '@hedhog/locale';
|
18
|
-
import { Role } from '@hedhog/utils';
|
17
|
+
import { Role, User } from '@hedhog/utils';
|
19
18
|
import { CreateDTO } from './dto/create.dto';
|
20
19
|
import { OrderDTO } from './dto/order.dto';
|
21
20
|
import { UpdateDTO } from './dto/update.dto';
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"user.decorator.d.ts","sourceRoot":"","sources":["../../../src/auth/decorators/user.decorator.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,IAAI,yLAUhB,CAAC"}
|
@@ -1,12 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.User = void 0;
|
4
|
-
const common_1 = require("@nestjs/common");
|
5
|
-
exports.User = (0, common_1.createParamDecorator)((field = null, ctx) => {
|
6
|
-
const request = ctx.switchToHttp().getRequest();
|
7
|
-
if (!request.auth || !request.auth.user) {
|
8
|
-
throw new common_1.UnauthorizedException(`User is not authenticated`);
|
9
|
-
}
|
10
|
-
return field ? request.auth.user[field] : request.auth.user;
|
11
|
-
});
|
12
|
-
//# sourceMappingURL=user.decorator.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"user.decorator.js","sourceRoot":"","sources":["../../../src/auth/decorators/user.decorator.ts"],"names":[],"mappings":";;;AAAA,2CAIwB;AAEX,QAAA,IAAI,GAAG,IAAA,6BAAoB,EACtC,CAAC,QAAuB,IAAI,EAAE,GAAqB,EAAE,EAAE;IACrD,MAAM,OAAO,GAAG,GAAG,CAAC,YAAY,EAAE,CAAC,UAAU,EAAE,CAAC;IAEhD,IAAI,CAAC,OAAO,CAAC,IAAI,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;QACxC,MAAM,IAAI,8BAAqB,CAAC,2BAA2B,CAAC,CAAC;IAC/D,CAAC;IAED,OAAO,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC;AAC9D,CAAC,CACF,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"with-locale.dto.d.ts","sourceRoot":"","sources":["../../src/dto/with-locale.dto.ts"],"names":[],"mappings":"AAEA,qBAAa,aAAa;IAIxB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;CAChD"}
|