@hedhog/admin 0.48.11 → 0.48.13
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/dist/admin.module.d.ts.map +1 -1
- package/dist/admin.module.js +1 -0
- package/dist/admin.module.js.map +1 -1
- package/dist/dashboard/dashboard-core/dashboard-core.controller.d.ts +29 -0
- package/dist/dashboard/dashboard-core/dashboard-core.controller.d.ts.map +1 -0
- package/dist/dashboard/dashboard-core/dashboard-core.controller.js +38 -0
- package/dist/dashboard/dashboard-core/dashboard-core.controller.js.map +1 -0
- package/dist/dashboard/dashboard-core/dashboard-core.module.d.ts +3 -0
- package/dist/dashboard/dashboard-core/dashboard-core.module.d.ts.map +1 -0
- package/dist/dashboard/dashboard-core/dashboard-core.module.js +26 -0
- package/dist/dashboard/dashboard-core/dashboard-core.module.js.map +1 -0
- package/dist/dashboard/dashboard-core/dashboard-core.service.d.ts +29 -0
- package/dist/dashboard/dashboard-core/dashboard-core.service.d.ts.map +1 -0
- package/dist/dashboard/dashboard-core/dashboard-core.service.js +33 -0
- package/dist/dashboard/dashboard-core/dashboard-core.service.js.map +1 -0
- package/dist/dashboard/dashboard.module.d.ts.map +1 -1
- package/dist/dashboard/dashboard.module.js +5 -3
- package/dist/dashboard/dashboard.module.js.map +1 -1
- package/dist/setting/setting.module.d.ts.map +1 -1
- package/dist/setting/setting.module.js +8 -1
- package/dist/setting/setting.module.js.map +1 -1
- package/hedhog/tables/dashboard.yaml +9 -0
- package/hedhog/tables/dashboard_component.yaml +34 -0
- package/hedhog/tables/dashboard_component_locale.yaml +24 -0
- package/hedhog/tables/dashboard_item.yaml +25 -0
- package/hedhog/tables/dashboard_locale.yaml +24 -0
- package/hedhog/tables/dashboard_user.yaml +25 -0
- package/hedhog/tables/menu.yaml +18 -0
- package/hedhog/tables/menu_locale.yaml +19 -0
- package/hedhog/tables/menu_screen.yaml +16 -0
- package/hedhog/tables/multifactor.yaml +6 -0
- package/hedhog/tables/multifactor_locale.yaml +19 -0
- package/hedhog/tables/role.yaml +6 -0
- package/hedhog/tables/role_locale.yaml +20 -0
- package/hedhog/tables/role_menu.yaml +18 -0
- package/hedhog/tables/role_route.yaml +18 -0
- package/hedhog/tables/role_screen.yaml +18 -0
- package/hedhog/tables/role_user.yaml +18 -0
- package/hedhog/tables/route.yaml +23 -0
- package/hedhog/tables/route_screen.yaml +18 -0
- package/hedhog/tables/screen.yaml +8 -0
- package/hedhog/tables/screen_locale.yaml +20 -0
- package/hedhog/tables/setting.yaml +27 -0
- package/hedhog/tables/setting_group.yaml +8 -0
- package/hedhog/tables/setting_group_locale.yaml +23 -0
- package/hedhog/tables/setting_locale.yaml +24 -0
- package/hedhog/tables/setting_user.yaml +21 -0
- package/hedhog/tables/translation.yaml +25 -0
- package/hedhog/tables/translation_namespace.yaml +6 -0
- package/hedhog/tables/user.yaml +18 -0
- package/hedhog/tables/user_activity.yaml +14 -0
- package/hedhog.yaml +16 -580
- package/package.json +1 -1
- package/src/admin.module.ts +1 -0
- package/src/dashboard/dashboard-core/dashboard-core.controller.ts +12 -0
- package/src/dashboard/dashboard-core/dashboard-core.module.ts +14 -0
- package/src/dashboard/dashboard-core/dashboard-core.service.ts +16 -0
- package/src/dashboard/dashboard.module.ts +5 -3
- package/src/setting/setting.module.ts +9 -2
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"admin.module.d.ts","sourceRoot":"","sources":["../src/admin.module.ts"],"names":[],"mappings":"AAgBA,
|
1
|
+
{"version":3,"file":"admin.module.d.ts","sourceRoot":"","sources":["../src/admin.module.ts"],"names":[],"mappings":"AAgBA,qBA6Ba,WAAW;CAAG"}
|
package/dist/admin.module.js
CHANGED
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,2CAA8C;AAC9C,uCAA0C;AAC1C,mDAAsD;AACtD,2CAA8C;AAC9C,2CAAoD;AACpD,2CAA8C;AAC9C,oDAAgD;AAChD,oDAAgD;AAChD,mEAA+D;AAC/D,oDAAgD;AAChD,oDAAgD;AAChD,uDAAmD;AACnD,0DAAsD;AACtD,6DAAyD;AACzD,oDAAgD;
|
1
|
+
{"version":3,"file":"admin.module.js","sourceRoot":"","sources":["../src/admin.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA8C;AAC9C,uCAA0C;AAC1C,mDAAsD;AACtD,2CAA8C;AAC9C,2CAAoD;AACpD,2CAA8C;AAC9C,oDAAgD;AAChD,oDAAgD;AAChD,mEAA+D;AAC/D,oDAAgD;AAChD,oDAAgD;AAChD,uDAAmD;AACnD,0DAAsD;AACtD,6DAAyD;AACzD,oDAAgD;AA+BzC,IAAM,WAAW,GAAjB,MAAM,WAAW;CAAG,CAAA;AAAd,kCAAW;sBAAX,WAAW;IA7BvB,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,qBAAY,CAAC,OAAO,EAAE;YACtB,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,wBAAU,CAAC;YAC5B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,kCAAe,CAAC;YACjC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,iBAAU,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;YAC5B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,wBAAU,CAAC;YAC5B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,8BAAa,CAAC;SAChC;QACD,OAAO,EAAE;YACP,wBAAU;YACV,wBAAU;YACV,iBAAU;YACV,0BAAW;YACX,wBAAU;YACV,wBAAU;YACV,4BAAY;YACZ,qBAAY;YACZ,8BAAa;SACd;KACF,CAAC;GACW,WAAW,CAAG"}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
import { DashboardCoreService } from './dashboard-core.service';
|
2
|
+
export declare class DashboardCoreController {
|
3
|
+
private readonly dashboardCoreService;
|
4
|
+
constructor(dashboardCoreService: DashboardCoreService);
|
5
|
+
fromSlug(slug: string): Promise<({
|
6
|
+
dashboard_user: {
|
7
|
+
id: number;
|
8
|
+
created_at: Date;
|
9
|
+
updated_at: Date;
|
10
|
+
user_id: number;
|
11
|
+
width: number;
|
12
|
+
height: number;
|
13
|
+
x_axis: number;
|
14
|
+
y_axis: number;
|
15
|
+
item_id: number;
|
16
|
+
}[];
|
17
|
+
} & {
|
18
|
+
id: number;
|
19
|
+
created_at: Date;
|
20
|
+
updated_at: Date;
|
21
|
+
width: number;
|
22
|
+
height: number;
|
23
|
+
component_id: number;
|
24
|
+
dashboard_id: number;
|
25
|
+
x_axis: number;
|
26
|
+
y_axis: number;
|
27
|
+
})[]>;
|
28
|
+
}
|
29
|
+
//# sourceMappingURL=dashboard-core.controller.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"dashboard-core.controller.d.ts","sourceRoot":"","sources":["../../../src/dashboard/dashboard-core/dashboard-core.controller.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAEhE,qBACa,uBAAuB;IACtB,OAAO,CAAC,QAAQ,CAAC,oBAAoB;gBAApB,oBAAoB,EAAE,oBAAoB;IAGvE,QAAQ,CAAgB,IAAI,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;CAGrC"}
|
@@ -0,0 +1,38 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
7
|
+
};
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
10
|
+
};
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
13
|
+
};
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
15
|
+
exports.DashboardCoreController = void 0;
|
16
|
+
const common_1 = require("@nestjs/common");
|
17
|
+
const dashboard_core_service_1 = require("./dashboard-core.service");
|
18
|
+
let DashboardCoreController = class DashboardCoreController {
|
19
|
+
constructor(dashboardCoreService) {
|
20
|
+
this.dashboardCoreService = dashboardCoreService;
|
21
|
+
}
|
22
|
+
fromSlug(slug) {
|
23
|
+
return this.dashboardCoreService.fromSlug(slug);
|
24
|
+
}
|
25
|
+
};
|
26
|
+
exports.DashboardCoreController = DashboardCoreController;
|
27
|
+
__decorate([
|
28
|
+
(0, common_1.Get)(':slug'),
|
29
|
+
__param(0, (0, common_1.Param)('slug')),
|
30
|
+
__metadata("design:type", Function),
|
31
|
+
__metadata("design:paramtypes", [String]),
|
32
|
+
__metadata("design:returntype", void 0)
|
33
|
+
], DashboardCoreController.prototype, "fromSlug", null);
|
34
|
+
exports.DashboardCoreController = DashboardCoreController = __decorate([
|
35
|
+
(0, common_1.Controller)('dashboard-core'),
|
36
|
+
__metadata("design:paramtypes", [dashboard_core_service_1.DashboardCoreService])
|
37
|
+
], DashboardCoreController);
|
38
|
+
//# sourceMappingURL=dashboard-core.controller.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"dashboard-core.controller.js","sourceRoot":"","sources":["../../../src/dashboard/dashboard-core/dashboard-core.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAwD;AACxD,qEAAgE;AAGzD,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;IAClC,YAA6B,oBAA0C;QAA1C,yBAAoB,GAApB,oBAAoB,CAAsB;IAAG,CAAC;IAG3E,QAAQ,CAAgB,IAAY;QAClC,OAAO,IAAI,CAAC,oBAAoB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAClD,CAAC;CACF,CAAA;AAPY,0DAAuB;AAIlC;IADC,IAAA,YAAG,EAAC,OAAO,CAAC;IACH,WAAA,IAAA,cAAK,EAAC,MAAM,CAAC,CAAA;;;;uDAEtB;kCANU,uBAAuB;IADnC,IAAA,mBAAU,EAAC,gBAAgB,CAAC;qCAEwB,6CAAoB;GAD5D,uBAAuB,CAOnC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"dashboard-core.module.d.ts","sourceRoot":"","sources":["../../../src/dashboard/dashboard-core/dashboard-core.module.ts"],"names":[],"mappings":"AAOA,qBAMa,mBAAmB;CAAG"}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
7
|
+
};
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
9
|
+
exports.DashboardCoreModule = void 0;
|
10
|
+
const common_1 = require("@nestjs/common");
|
11
|
+
const locale_1 = require("@hedhog/locale");
|
12
|
+
const prisma_1 = require("@hedhog/prisma");
|
13
|
+
const dashboard_core_controller_1 = require("./dashboard-core.controller");
|
14
|
+
const dashboard_core_service_1 = require("./dashboard-core.service");
|
15
|
+
let DashboardCoreModule = class DashboardCoreModule {
|
16
|
+
};
|
17
|
+
exports.DashboardCoreModule = DashboardCoreModule;
|
18
|
+
exports.DashboardCoreModule = DashboardCoreModule = __decorate([
|
19
|
+
(0, common_1.Module)({
|
20
|
+
imports: [(0, common_1.forwardRef)(() => locale_1.LocaleModule), (0, common_1.forwardRef)(() => prisma_1.PrismaModule)],
|
21
|
+
controllers: [dashboard_core_controller_1.DashboardCoreController],
|
22
|
+
providers: [dashboard_core_service_1.DashboardCoreService],
|
23
|
+
exports: [dashboard_core_service_1.DashboardCoreService],
|
24
|
+
})
|
25
|
+
], DashboardCoreModule);
|
26
|
+
//# sourceMappingURL=dashboard-core.module.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"dashboard-core.module.js","sourceRoot":"","sources":["../../../src/dashboard/dashboard-core/dashboard-core.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAoD;AAEpD,2CAA8C;AAC9C,2CAA8C;AAC9C,2EAAsE;AACtE,qEAAgE;AAQzD,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;CAAG,CAAA;AAAtB,kDAAmB;8BAAnB,mBAAmB;IAN/B,IAAA,eAAM,EAAC;QACN,OAAO,EAAE,CAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,qBAAY,CAAC,EAAE,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,qBAAY,CAAC,CAAC;QACzE,WAAW,EAAE,CAAC,mDAAuB,CAAC;QACtC,SAAS,EAAE,CAAC,6CAAoB,CAAC;QACjC,OAAO,EAAE,CAAC,6CAAoB,CAAC;KAChC,CAAC;GACW,mBAAmB,CAAG"}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
import { PrismaService } from '@hedhog/prisma';
|
2
|
+
export declare class DashboardCoreService {
|
3
|
+
private readonly prismaService;
|
4
|
+
constructor(prismaService: PrismaService);
|
5
|
+
fromSlug(slug: string): Promise<({
|
6
|
+
dashboard_user: {
|
7
|
+
id: number;
|
8
|
+
created_at: Date;
|
9
|
+
updated_at: Date;
|
10
|
+
user_id: number;
|
11
|
+
width: number;
|
12
|
+
height: number;
|
13
|
+
x_axis: number;
|
14
|
+
y_axis: number;
|
15
|
+
item_id: number;
|
16
|
+
}[];
|
17
|
+
} & {
|
18
|
+
id: number;
|
19
|
+
created_at: Date;
|
20
|
+
updated_at: Date;
|
21
|
+
width: number;
|
22
|
+
height: number;
|
23
|
+
component_id: number;
|
24
|
+
dashboard_id: number;
|
25
|
+
x_axis: number;
|
26
|
+
y_axis: number;
|
27
|
+
})[]>;
|
28
|
+
}
|
29
|
+
//# sourceMappingURL=dashboard-core.service.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"dashboard-core.service.d.ts","sourceRoot":"","sources":["../../../src/dashboard/dashboard-core/dashboard-core.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAG/C,qBACa,oBAAoB;IACnB,OAAO,CAAC,QAAQ,CAAC,aAAa;gBAAb,aAAa,EAAE,aAAa;IAEnD,QAAQ,CAAC,IAAI,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;CAQ5B"}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
7
|
+
};
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
10
|
+
};
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
+
exports.DashboardCoreService = void 0;
|
13
|
+
const prisma_1 = require("@hedhog/prisma");
|
14
|
+
const common_1 = require("@nestjs/common");
|
15
|
+
let DashboardCoreService = class DashboardCoreService {
|
16
|
+
constructor(prismaService) {
|
17
|
+
this.prismaService = prismaService;
|
18
|
+
}
|
19
|
+
async fromSlug(slug) {
|
20
|
+
return this.prismaService.dashboard_item.findMany({
|
21
|
+
where: { dashboard: { slug } },
|
22
|
+
include: {
|
23
|
+
dashboard_user: true,
|
24
|
+
},
|
25
|
+
});
|
26
|
+
}
|
27
|
+
};
|
28
|
+
exports.DashboardCoreService = DashboardCoreService;
|
29
|
+
exports.DashboardCoreService = DashboardCoreService = __decorate([
|
30
|
+
(0, common_1.Injectable)(),
|
31
|
+
__metadata("design:paramtypes", [prisma_1.PrismaService])
|
32
|
+
], DashboardCoreService);
|
33
|
+
//# sourceMappingURL=dashboard-core.service.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"dashboard-core.service.js","sourceRoot":"","sources":["../../../src/dashboard/dashboard-core/dashboard-core.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA+C;AAC/C,2CAA4C;AAGrC,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAC/B,YAA6B,aAA4B;QAA5B,kBAAa,GAAb,aAAa,CAAe;IAAG,CAAC;IAE7D,KAAK,CAAC,QAAQ,CAAC,IAAY;QACzB,OAAO,IAAI,CAAC,aAAa,CAAC,cAAc,CAAC,QAAQ,CAAC;YAChD,KAAK,EAAE,EAAE,SAAS,EAAE,EAAE,IAAI,EAAE,EAAE;YAC9B,OAAO,EAAE;gBACP,cAAc,EAAE,IAAI;aACrB;SACF,CAAC,CAAC;IACL,CAAC;CACF,CAAA;AAXY,oDAAoB;+BAApB,oBAAoB;IADhC,IAAA,mBAAU,GAAE;qCAEiC,sBAAa;GAD9C,oBAAoB,CAWhC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"dashboard.module.d.ts","sourceRoot":"","sources":["../../src/dashboard/dashboard.module.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"dashboard.module.d.ts","sourceRoot":"","sources":["../../src/dashboard/dashboard.module.ts"],"names":[],"mappings":"AASA,qBAca,eAAe;CAAG"}
|
@@ -7,12 +7,13 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
7
7
|
};
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
9
9
|
exports.DashboardModule = void 0;
|
10
|
-
const dashboard_component_module_1 = require("./dashboard-component/dashboard-component.module");
|
11
|
-
const dashboard_user_module_1 = require("./dashboard-user/dashboard-user.module");
|
12
|
-
const dashboard_item_module_1 = require("./dashboard-item/dashboard-item.module");
|
13
10
|
const locale_1 = require("@hedhog/locale");
|
14
11
|
const prisma_1 = require("@hedhog/prisma");
|
15
12
|
const common_1 = require("@nestjs/common");
|
13
|
+
const dashboard_component_module_1 = require("./dashboard-component/dashboard-component.module");
|
14
|
+
const dashboard_core_module_1 = require("./dashboard-core/dashboard-core.module");
|
15
|
+
const dashboard_item_module_1 = require("./dashboard-item/dashboard-item.module");
|
16
|
+
const dashboard_user_module_1 = require("./dashboard-user/dashboard-user.module");
|
16
17
|
const dashboard_module_1 = require("./dashboard/dashboard.module");
|
17
18
|
let DashboardModule = class DashboardModule {
|
18
19
|
};
|
@@ -26,6 +27,7 @@ exports.DashboardModule = DashboardModule = __decorate([
|
|
26
27
|
(0, common_1.forwardRef)(() => dashboard_component_module_1.DashboardComponentModule),
|
27
28
|
(0, common_1.forwardRef)(() => dashboard_item_module_1.DashboardItemModule),
|
28
29
|
(0, common_1.forwardRef)(() => dashboard_user_module_1.DashboardUserModule),
|
30
|
+
(0, common_1.forwardRef)(() => dashboard_core_module_1.DashboardCoreModule),
|
29
31
|
],
|
30
32
|
controllers: [],
|
31
33
|
providers: [],
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"dashboard.module.js","sourceRoot":"","sources":["../../src/dashboard/dashboard.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,iGAA4F;AAC5F,kFAA6E;AAC7E,kFAA6E;AAC7E,
|
1
|
+
{"version":3,"file":"dashboard.module.js","sourceRoot":"","sources":["../../src/dashboard/dashboard.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA8C;AAC9C,2CAA8C;AAC9C,2CAAoD;AACpD,iGAA4F;AAC5F,kFAA6E;AAC7E,kFAA6E;AAC7E,kFAA6E;AAC7E,mEAAgE;AAgBzD,IAAM,eAAe,GAArB,MAAM,eAAe;CAAG,CAAA;AAAlB,0CAAe;0BAAf,eAAe;IAd3B,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,qBAAY,CAAC;YAC9B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,qBAAY,CAAC;YAC9B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,mCAAgB,CAAC;YAClC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,qDAAwB,CAAC;YAC1C,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,2CAAmB,CAAC;YACrC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,2CAAmB,CAAC;YACrC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,2CAAmB,CAAC;SACtC;QACD,WAAW,EAAE,EAAE;QACf,SAAS,EAAE,EAAE;QACb,OAAO,EAAE,EAAE;KACZ,CAAC;GACW,eAAe,CAAG"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"setting.module.d.ts","sourceRoot":"","sources":["../../src/setting/setting.module.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"setting.module.d.ts","sourceRoot":"","sources":["../../src/setting/setting.module.ts"],"names":[],"mappings":"AAOA,qBAUa,aAAa;CAAG"}
|
@@ -7,7 +7,10 @@ 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 pagination_1 = require("@hedhog/pagination");
|
11
|
+
const prisma_1 = require("@hedhog/prisma");
|
10
12
|
const common_1 = require("@nestjs/common");
|
13
|
+
const auth_module_1 = require("../auth/auth.module");
|
11
14
|
const setting_controller_1 = require("./setting.controller");
|
12
15
|
const setting_service_1 = require("./setting.service");
|
13
16
|
let SettingModule = class SettingModule {
|
@@ -15,7 +18,11 @@ let SettingModule = class SettingModule {
|
|
15
18
|
exports.SettingModule = SettingModule;
|
16
19
|
exports.SettingModule = SettingModule = __decorate([
|
17
20
|
(0, common_1.Module)({
|
18
|
-
imports: [
|
21
|
+
imports: [
|
22
|
+
(0, common_1.forwardRef)(() => auth_module_1.AuthModule),
|
23
|
+
(0, common_1.forwardRef)(() => prisma_1.PrismaModule),
|
24
|
+
(0, common_1.forwardRef)(() => pagination_1.PaginationModule),
|
25
|
+
],
|
19
26
|
controllers: [setting_controller_1.SettingsController],
|
20
27
|
providers: [setting_service_1.SettingService],
|
21
28
|
exports: [setting_service_1.SettingService],
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"setting.module.js","sourceRoot":"","sources":["../../src/setting/setting.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,
|
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,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;QACD,WAAW,EAAE,CAAC,uCAAkB,CAAC;QACjC,SAAS,EAAE,CAAC,gCAAc,CAAC;QAC3B,OAAO,EAAE,CAAC,gCAAc,CAAC;KAC1B,CAAC;GACW,aAAa,CAAG"}
|
@@ -0,0 +1,34 @@
|
|
1
|
+
columns:
|
2
|
+
- type: pk
|
3
|
+
- type: slug
|
4
|
+
locale:
|
5
|
+
en: Slug
|
6
|
+
pt: Slug
|
7
|
+
- name: path
|
8
|
+
type: varchar
|
9
|
+
length: 500
|
10
|
+
locale:
|
11
|
+
en: Path
|
12
|
+
pt: Caminho
|
13
|
+
- name: min_width
|
14
|
+
type: int
|
15
|
+
default: 1
|
16
|
+
- name: max_width
|
17
|
+
type: int
|
18
|
+
isNullable: true
|
19
|
+
- name: min_height
|
20
|
+
type: int
|
21
|
+
default: 1
|
22
|
+
- name: max_height
|
23
|
+
type: int
|
24
|
+
isNullable: true
|
25
|
+
- name: width
|
26
|
+
type: int
|
27
|
+
- name: height
|
28
|
+
type: int
|
29
|
+
- name: is_resizable
|
30
|
+
type: boolean
|
31
|
+
default: true
|
32
|
+
- type: created_at
|
33
|
+
- type: updated_at
|
34
|
+
ifNotExists: true
|
@@ -0,0 +1,24 @@
|
|
1
|
+
columns:
|
2
|
+
- name: component_id
|
3
|
+
type: fk
|
4
|
+
isPrimary: true
|
5
|
+
references:
|
6
|
+
table: dashboard_component
|
7
|
+
column: id
|
8
|
+
onDelete: CASCADE
|
9
|
+
- name: locale_id
|
10
|
+
type: fk
|
11
|
+
isPrimary: true
|
12
|
+
references:
|
13
|
+
table: locale
|
14
|
+
column: id
|
15
|
+
onDelete: CASCADE
|
16
|
+
- name: name
|
17
|
+
type: varchar
|
18
|
+
length: 255
|
19
|
+
locale:
|
20
|
+
en: Name
|
21
|
+
pt: Nome
|
22
|
+
- type: created_at
|
23
|
+
- type: updated_at
|
24
|
+
ifNotExists: true
|
@@ -0,0 +1,25 @@
|
|
1
|
+
columns:
|
2
|
+
- type: pk
|
3
|
+
- name: component_id
|
4
|
+
type: fk
|
5
|
+
references:
|
6
|
+
table: dashboard_component
|
7
|
+
column: id
|
8
|
+
onDelete: CASCADE
|
9
|
+
- name: dashboard_id
|
10
|
+
type: fk
|
11
|
+
references:
|
12
|
+
table: dashboard
|
13
|
+
column: id
|
14
|
+
onDelete: CASCADE
|
15
|
+
- name: width
|
16
|
+
type: int
|
17
|
+
- name: height
|
18
|
+
type: int
|
19
|
+
- name: x_axis
|
20
|
+
type: int
|
21
|
+
- name: y_axis
|
22
|
+
type: int
|
23
|
+
- type: created_at
|
24
|
+
- type: updated_at
|
25
|
+
ifNotExists: true
|
@@ -0,0 +1,24 @@
|
|
1
|
+
columns:
|
2
|
+
- name: dashboard_id
|
3
|
+
type: fk
|
4
|
+
isPrimary: true
|
5
|
+
references:
|
6
|
+
table: dashboard
|
7
|
+
column: id
|
8
|
+
onDelete: CASCADE
|
9
|
+
- name: locale_id
|
10
|
+
type: fk
|
11
|
+
isPrimary: true
|
12
|
+
references:
|
13
|
+
table: locale
|
14
|
+
column: id
|
15
|
+
onDelete: CASCADE
|
16
|
+
- name: name
|
17
|
+
type: varchar
|
18
|
+
length: 255
|
19
|
+
locale:
|
20
|
+
en: Name
|
21
|
+
pt: Nome
|
22
|
+
- type: created_at
|
23
|
+
- type: updated_at
|
24
|
+
ifNotExists: true
|
@@ -0,0 +1,25 @@
|
|
1
|
+
columns:
|
2
|
+
- type: pk
|
3
|
+
- name: item_id
|
4
|
+
type: fk
|
5
|
+
references:
|
6
|
+
table: dashboard_item
|
7
|
+
column: id
|
8
|
+
onDelete: CASCADE
|
9
|
+
- name: user_id
|
10
|
+
type: fk
|
11
|
+
references:
|
12
|
+
table: user
|
13
|
+
column: id
|
14
|
+
onDelete: CASCADE
|
15
|
+
- name: width
|
16
|
+
type: int
|
17
|
+
- name: height
|
18
|
+
type: int
|
19
|
+
- name: x_axis
|
20
|
+
type: int
|
21
|
+
- name: y_axis
|
22
|
+
type: int
|
23
|
+
- type: created_at
|
24
|
+
- type: updated_at
|
25
|
+
ifNotExists: true
|
@@ -0,0 +1,18 @@
|
|
1
|
+
columns:
|
2
|
+
- type: pk
|
3
|
+
- name: menu_id
|
4
|
+
type: fk
|
5
|
+
isNullable: true
|
6
|
+
references:
|
7
|
+
table: menu
|
8
|
+
column: id
|
9
|
+
onDelete: CASCADE
|
10
|
+
- type: slug
|
11
|
+
- name: url
|
12
|
+
isNullable: true
|
13
|
+
- type: order
|
14
|
+
- name: icon
|
15
|
+
isNullable: true
|
16
|
+
- type: created_at
|
17
|
+
- type: updated_at
|
18
|
+
ifNotExists: true
|
@@ -0,0 +1,19 @@
|
|
1
|
+
columns:
|
2
|
+
- name: menu_id
|
3
|
+
type: fk
|
4
|
+
isPrimary: true
|
5
|
+
references:
|
6
|
+
table: menu
|
7
|
+
column: id
|
8
|
+
onDelete: CASCADE
|
9
|
+
- name: locale_id
|
10
|
+
type: fk
|
11
|
+
isPrimary: true
|
12
|
+
references:
|
13
|
+
table: locale
|
14
|
+
column: id
|
15
|
+
onDelete: CASCADE
|
16
|
+
- name: name
|
17
|
+
- type: created_at
|
18
|
+
- type: updated_at
|
19
|
+
ifNotExists: true
|
@@ -0,0 +1,16 @@
|
|
1
|
+
columns:
|
2
|
+
- name: menu_id
|
3
|
+
type: fk
|
4
|
+
isPrimary: true
|
5
|
+
references:
|
6
|
+
table: menu
|
7
|
+
column: id
|
8
|
+
onDelete: CASCADE
|
9
|
+
- name: screen_id
|
10
|
+
type: fk
|
11
|
+
isPrimary: true
|
12
|
+
references:
|
13
|
+
table: screen
|
14
|
+
column: id
|
15
|
+
onDelete: CASCADE
|
16
|
+
ifNotExists: true
|
@@ -0,0 +1,19 @@
|
|
1
|
+
columns:
|
2
|
+
- name: multifactor_id
|
3
|
+
type: fk
|
4
|
+
isPrimary: true
|
5
|
+
references:
|
6
|
+
table: multifactor
|
7
|
+
column: id
|
8
|
+
onDelete: CASCADE
|
9
|
+
- name: locale_id
|
10
|
+
type: fk
|
11
|
+
isPrimary: true
|
12
|
+
references:
|
13
|
+
table: locale
|
14
|
+
column: id
|
15
|
+
onDelete: CASCADE
|
16
|
+
- name: name
|
17
|
+
- type: created_at
|
18
|
+
- type: updated_at
|
19
|
+
ifNotExists: true
|
@@ -0,0 +1,20 @@
|
|
1
|
+
columns:
|
2
|
+
- name: role_id
|
3
|
+
type: fk
|
4
|
+
isPrimary: true
|
5
|
+
references:
|
6
|
+
table: role
|
7
|
+
column: id
|
8
|
+
onDelete: CASCADE
|
9
|
+
- name: locale_id
|
10
|
+
type: fk
|
11
|
+
isPrimary: true
|
12
|
+
references:
|
13
|
+
table: locale
|
14
|
+
column: id
|
15
|
+
onDelete: CASCADE
|
16
|
+
- name: name
|
17
|
+
- name: description
|
18
|
+
- type: created_at
|
19
|
+
- type: updated_at
|
20
|
+
ifNotExists: true
|
@@ -0,0 +1,18 @@
|
|
1
|
+
columns:
|
2
|
+
- name: role_id
|
3
|
+
type: fk
|
4
|
+
isPrimary: true
|
5
|
+
references:
|
6
|
+
table: role
|
7
|
+
column: id
|
8
|
+
onDelete: CASCADE
|
9
|
+
- name: menu_id
|
10
|
+
type: fk
|
11
|
+
isPrimary: true
|
12
|
+
references:
|
13
|
+
table: menu
|
14
|
+
column: id
|
15
|
+
onDelete: CASCADE
|
16
|
+
- type: created_at
|
17
|
+
- type: updated_at
|
18
|
+
ifNotExists: true
|
@@ -0,0 +1,18 @@
|
|
1
|
+
columns:
|
2
|
+
- name: role_id
|
3
|
+
type: fk
|
4
|
+
isPrimary: true
|
5
|
+
references:
|
6
|
+
table: role
|
7
|
+
column: id
|
8
|
+
onDelete: CASCADE
|
9
|
+
- name: route_id
|
10
|
+
type: fk
|
11
|
+
isPrimary: true
|
12
|
+
references:
|
13
|
+
table: route
|
14
|
+
column: id
|
15
|
+
onDelete: CASCADE
|
16
|
+
- type: created_at
|
17
|
+
- type: updated_at
|
18
|
+
ifNotExists: true
|
@@ -0,0 +1,18 @@
|
|
1
|
+
columns:
|
2
|
+
- name: role_id
|
3
|
+
type: fk
|
4
|
+
isPrimary: true
|
5
|
+
references:
|
6
|
+
table: role
|
7
|
+
column: id
|
8
|
+
onDelete: CASCADE
|
9
|
+
- name: screen_id
|
10
|
+
type: fk
|
11
|
+
isPrimary: true
|
12
|
+
references:
|
13
|
+
table: screen
|
14
|
+
column: id
|
15
|
+
onDelete: CASCADE
|
16
|
+
- type: created_at
|
17
|
+
- type: updated_at
|
18
|
+
ifNotExists: true
|
@@ -0,0 +1,18 @@
|
|
1
|
+
columns:
|
2
|
+
- name: role_id
|
3
|
+
type: fk
|
4
|
+
isPrimary: true
|
5
|
+
references:
|
6
|
+
table: role
|
7
|
+
column: id
|
8
|
+
onDelete: CASCADE
|
9
|
+
- name: user_id
|
10
|
+
type: fk
|
11
|
+
isPrimary: true
|
12
|
+
references:
|
13
|
+
table: user
|
14
|
+
column: id
|
15
|
+
onDelete: CASCADE
|
16
|
+
- type: created_at
|
17
|
+
- type: updated_at
|
18
|
+
ifNotExists: true
|
@@ -0,0 +1,23 @@
|
|
1
|
+
columns:
|
2
|
+
- type: pk
|
3
|
+
- name: url
|
4
|
+
- name: method
|
5
|
+
type: enum
|
6
|
+
enum:
|
7
|
+
- GET
|
8
|
+
- POST
|
9
|
+
- PATCH
|
10
|
+
- DELETE
|
11
|
+
- PUT
|
12
|
+
- OPTIONS
|
13
|
+
- HEAD
|
14
|
+
- name: description
|
15
|
+
isNullable: true
|
16
|
+
- type: created_at
|
17
|
+
- type: updated_at
|
18
|
+
indices:
|
19
|
+
- columns:
|
20
|
+
- url
|
21
|
+
- method
|
22
|
+
isUnique: true
|
23
|
+
ifNotExists: true
|