@hedhog/admin 0.0.52 → 0.0.54
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/entities/country.entity.d.ts +6 -0
- package/dist/entities/country.entity.d.ts.map +1 -0
- package/dist/entities/country.entity.js +36 -0
- package/dist/entities/country.entity.js.map +1 -0
- package/dist/entities/index.d.ts +12 -0
- package/dist/entities/index.d.ts.map +1 -0
- package/dist/entities/index.js +28 -0
- package/dist/entities/index.js.map +1 -0
- package/dist/entities/locale.entity.d.ts +8 -0
- package/dist/entities/locale.entity.d.ts.map +1 -0
- package/dist/entities/locale.entity.js +49 -0
- package/dist/entities/locale.entity.js.map +1 -0
- package/dist/entities/menu.entity.d.ts +9 -0
- package/dist/entities/menu.entity.d.ts.map +1 -0
- package/dist/entities/menu.entity.js +55 -0
- package/dist/entities/menu.entity.js.map +1 -0
- package/dist/entities/multifactor.entity.d.ts +5 -0
- package/dist/entities/multifactor.entity.d.ts.map +1 -0
- package/dist/entities/multifactor.entity.js +28 -0
- package/dist/entities/multifactor.entity.js.map +1 -0
- package/dist/entities/role.entity.d.ts +5 -0
- package/dist/entities/role.entity.d.ts.map +1 -0
- package/dist/entities/role.entity.js +30 -0
- package/dist/entities/role.entity.js.map +1 -0
- package/dist/entities/route.entity.d.ts +6 -0
- package/dist/entities/route.entity.d.ts.map +1 -0
- package/dist/entities/route.entity.js +34 -0
- package/dist/entities/route.entity.js.map +1 -0
- package/dist/entities/screen.entity.d.ts +6 -0
- package/dist/entities/screen.entity.d.ts.map +1 -0
- package/dist/entities/screen.entity.js +34 -0
- package/dist/entities/screen.entity.js.map +1 -0
- package/dist/entities/setting-group.entity.d.ts +6 -0
- package/dist/entities/setting-group.entity.d.ts.map +1 -0
- package/dist/entities/setting-group.entity.js +37 -0
- package/dist/entities/setting-group.entity.js.map +1 -0
- package/dist/entities/setting.entity.d.ts +8 -0
- package/dist/entities/setting.entity.d.ts.map +1 -0
- package/dist/entities/setting.entity.js +49 -0
- package/dist/entities/setting.entity.js.map +1 -0
- package/dist/entities/translation.entity.d.ts +8 -0
- package/dist/entities/translation.entity.d.ts.map +1 -0
- package/dist/entities/translation.entity.js +40 -0
- package/dist/entities/translation.entity.js.map +1 -0
- package/dist/entities/user.entity.d.ts +9 -0
- package/dist/entities/user.entity.d.ts.map +1 -0
- package/dist/entities/user.entity.js +49 -0
- package/dist/entities/user.entity.js.map +1 -0
- package/package.json +2 -1
- package/src/entities/country.entity.ts +17 -0
- package/src/entities/index.ts +11 -0
- package/src/entities/locale.entity.ts +28 -0
- package/src/entities/menu.entity.ts +33 -0
- package/src/entities/multifactor.entity.ts +10 -0
- package/src/entities/role.entity.ts +12 -0
- package/src/entities/route.entity.ts +15 -0
- package/src/entities/screen.entity.ts +15 -0
- package/src/entities/setting-group.entity.ts +18 -0
- package/src/entities/setting.entity.ts +28 -0
- package/src/entities/translation.entity.ts +19 -0
- package/src/entities/user.entity.ts +27 -0
- package/src/migrations/migrate-03.ts +12 -1
- package/src/migrations/migrate-05.ts +12 -9
- package/src/migrations/migrate-07.ts +15 -2
- package/src/migrations/migrate-20.ts +30 -1
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"country.entity.d.ts","sourceRoot":"","sources":["../../src/entities/country.entity.ts"],"names":[],"mappings":"AAEA,qBACa,OAAO;IAIlB,EAAE,EAAE,MAAM,CAAC;IAGX,IAAI,EAAE,MAAM,CAAC;IAKb,IAAI,EAAE,MAAM,CAAC;CACd"}
|
@@ -0,0 +1,36 @@
|
|
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.Country = void 0;
|
13
|
+
const typeorm_1 = require("typeorm");
|
14
|
+
let Country = class Country {
|
15
|
+
};
|
16
|
+
exports.Country = Country;
|
17
|
+
__decorate([
|
18
|
+
(0, typeorm_1.PrimaryGeneratedColumn)({
|
19
|
+
unsigned: true,
|
20
|
+
}),
|
21
|
+
__metadata("design:type", Number)
|
22
|
+
], Country.prototype, "id", void 0);
|
23
|
+
__decorate([
|
24
|
+
(0, typeorm_1.Column)(),
|
25
|
+
__metadata("design:type", String)
|
26
|
+
], Country.prototype, "name", void 0);
|
27
|
+
__decorate([
|
28
|
+
(0, typeorm_1.Column)({
|
29
|
+
length: 3,
|
30
|
+
}),
|
31
|
+
__metadata("design:type", String)
|
32
|
+
], Country.prototype, "code", void 0);
|
33
|
+
exports.Country = Country = __decorate([
|
34
|
+
(0, typeorm_1.Entity)()
|
35
|
+
], Country);
|
36
|
+
//# sourceMappingURL=country.entity.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"country.entity.js","sourceRoot":"","sources":["../../src/entities/country.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAiE;AAG1D,IAAM,OAAO,GAAb,MAAM,OAAO;CAanB,CAAA;AAbY,0BAAO;AAIlB;IAHC,IAAA,gCAAsB,EAAC;QACtB,QAAQ,EAAE,IAAI;KACf,CAAC;;mCACS;AAGX;IADC,IAAA,gBAAM,GAAE;;qCACI;AAKb;IAHC,IAAA,gBAAM,EAAC;QACN,MAAM,EAAE,CAAC;KACV,CAAC;;qCACW;kBAZF,OAAO;IADnB,IAAA,gBAAM,GAAE;GACI,OAAO,CAanB"}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
export * from './user.entity';
|
2
|
+
export * from './translation.entity';
|
3
|
+
export * from './screen.entity';
|
4
|
+
export * from './role.entity';
|
5
|
+
export * from './multifactor.entity';
|
6
|
+
export * from './locale.entity';
|
7
|
+
export * from './country.entity';
|
8
|
+
export * from './menu.entity';
|
9
|
+
export * from './route.entity';
|
10
|
+
export * from './setting-group.entity';
|
11
|
+
export * from './setting.entity';
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,kBAAkB,CAAC"}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./user.entity"), exports);
|
18
|
+
__exportStar(require("./translation.entity"), exports);
|
19
|
+
__exportStar(require("./screen.entity"), exports);
|
20
|
+
__exportStar(require("./role.entity"), exports);
|
21
|
+
__exportStar(require("./multifactor.entity"), exports);
|
22
|
+
__exportStar(require("./locale.entity"), exports);
|
23
|
+
__exportStar(require("./country.entity"), exports);
|
24
|
+
__exportStar(require("./menu.entity"), exports);
|
25
|
+
__exportStar(require("./route.entity"), exports);
|
26
|
+
__exportStar(require("./setting-group.entity"), exports);
|
27
|
+
__exportStar(require("./setting.entity"), exports);
|
28
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,uDAAqC;AACrC,kDAAgC;AAChC,gDAA8B;AAC9B,uDAAqC;AACrC,kDAAgC;AAChC,mDAAiC;AACjC,gDAA8B;AAC9B,iDAA+B;AAC/B,yDAAuC;AACvC,mDAAiC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"locale.entity.d.ts","sourceRoot":"","sources":["../../src/entities/locale.entity.ts"],"names":[],"mappings":"AAEA,qBACa,MAAM;IAIjB,EAAE,EAAE,MAAM,CAAC;IAMX,UAAU,EAAE,MAAM,CAAC;IAKnB,IAAI,EAAE,MAAM,CAAC;IAKb,MAAM,EAAE,MAAM,CAAC;IAGf,OAAO,EAAE,OAAO,CAAC;CAClB"}
|
@@ -0,0 +1,49 @@
|
|
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.Locale = void 0;
|
13
|
+
const typeorm_1 = require("typeorm");
|
14
|
+
let Locale = class Locale {
|
15
|
+
};
|
16
|
+
exports.Locale = Locale;
|
17
|
+
__decorate([
|
18
|
+
(0, typeorm_1.PrimaryGeneratedColumn)({
|
19
|
+
unsigned: true,
|
20
|
+
}),
|
21
|
+
__metadata("design:type", Number)
|
22
|
+
], Locale.prototype, "id", void 0);
|
23
|
+
__decorate([
|
24
|
+
(0, typeorm_1.JoinColumn)(),
|
25
|
+
(0, typeorm_1.Column)({
|
26
|
+
unsigned: true,
|
27
|
+
}),
|
28
|
+
__metadata("design:type", Number)
|
29
|
+
], Locale.prototype, "country_id", void 0);
|
30
|
+
__decorate([
|
31
|
+
(0, typeorm_1.Column)({
|
32
|
+
length: 2,
|
33
|
+
}),
|
34
|
+
__metadata("design:type", String)
|
35
|
+
], Locale.prototype, "code", void 0);
|
36
|
+
__decorate([
|
37
|
+
(0, typeorm_1.Column)({
|
38
|
+
length: 2,
|
39
|
+
}),
|
40
|
+
__metadata("design:type", String)
|
41
|
+
], Locale.prototype, "region", void 0);
|
42
|
+
__decorate([
|
43
|
+
(0, typeorm_1.Column)(),
|
44
|
+
__metadata("design:type", Boolean)
|
45
|
+
], Locale.prototype, "enabled", void 0);
|
46
|
+
exports.Locale = Locale = __decorate([
|
47
|
+
(0, typeorm_1.Entity)()
|
48
|
+
], Locale);
|
49
|
+
//# sourceMappingURL=locale.entity.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"locale.entity.js","sourceRoot":"","sources":["../../src/entities/locale.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA6E;AAGtE,IAAM,MAAM,GAAZ,MAAM,MAAM;CAwBlB,CAAA;AAxBY,wBAAM;AAIjB;IAHC,IAAA,gCAAsB,EAAC;QACtB,QAAQ,EAAE,IAAI;KACf,CAAC;;kCACS;AAMX;IAJC,IAAA,oBAAU,GAAE;IACZ,IAAA,gBAAM,EAAC;QACN,QAAQ,EAAE,IAAI;KACf,CAAC;;0CACiB;AAKnB;IAHC,IAAA,gBAAM,EAAC;QACN,MAAM,EAAE,CAAC;KACV,CAAC;;oCACW;AAKb;IAHC,IAAA,gBAAM,EAAC;QACN,MAAM,EAAE,CAAC;KACV,CAAC;;sCACa;AAGf;IADC,IAAA,gBAAM,GAAE;;uCACQ;iBAvBN,MAAM;IADlB,IAAA,gBAAM,GAAE;GACI,MAAM,CAwBlB"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"menu.entity.d.ts","sourceRoot":"","sources":["../../src/entities/menu.entity.ts"],"names":[],"mappings":"AAEA,qBACa,IAAI;IAEf,EAAE,EAAE,MAAM,CAAC;IAOX,OAAO,CAAC,EAAE,MAAM,CAAC;IAGjB,IAAI,EAAE,MAAM,CAAC;IAKb,GAAG,CAAC,EAAE,MAAM,CAAC;IAMb,KAAK,EAAE,MAAM,CAAC;IAKd,IAAI,CAAC,EAAE,MAAM,CAAC;CACf"}
|
@@ -0,0 +1,55 @@
|
|
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.Menu = void 0;
|
13
|
+
const typeorm_1 = require("typeorm");
|
14
|
+
let Menu = class Menu {
|
15
|
+
};
|
16
|
+
exports.Menu = Menu;
|
17
|
+
__decorate([
|
18
|
+
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
19
|
+
__metadata("design:type", Number)
|
20
|
+
], Menu.prototype, "id", void 0);
|
21
|
+
__decorate([
|
22
|
+
(0, typeorm_1.JoinColumn)(),
|
23
|
+
(0, typeorm_1.Column)({
|
24
|
+
nullable: true,
|
25
|
+
unsigned: true,
|
26
|
+
}),
|
27
|
+
__metadata("design:type", String)
|
28
|
+
], Menu.prototype, "menu_id", void 0);
|
29
|
+
__decorate([
|
30
|
+
(0, typeorm_1.Column)(),
|
31
|
+
__metadata("design:type", String)
|
32
|
+
], Menu.prototype, "slug", void 0);
|
33
|
+
__decorate([
|
34
|
+
(0, typeorm_1.Column)({
|
35
|
+
nullable: true,
|
36
|
+
}),
|
37
|
+
__metadata("design:type", String)
|
38
|
+
], Menu.prototype, "url", void 0);
|
39
|
+
__decorate([
|
40
|
+
(0, typeorm_1.Column)({
|
41
|
+
default: 0,
|
42
|
+
unsigned: true,
|
43
|
+
}),
|
44
|
+
__metadata("design:type", Number)
|
45
|
+
], Menu.prototype, "order", void 0);
|
46
|
+
__decorate([
|
47
|
+
(0, typeorm_1.Column)({
|
48
|
+
nullable: true,
|
49
|
+
}),
|
50
|
+
__metadata("design:type", String)
|
51
|
+
], Menu.prototype, "icon", void 0);
|
52
|
+
exports.Menu = Menu = __decorate([
|
53
|
+
(0, typeorm_1.Entity)()
|
54
|
+
], Menu);
|
55
|
+
//# sourceMappingURL=menu.entity.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"menu.entity.js","sourceRoot":"","sources":["../../src/entities/menu.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA6E;AAGtE,IAAM,IAAI,GAAV,MAAM,IAAI;CA6BhB,CAAA;AA7BY,oBAAI;AAEf;IADC,IAAA,gCAAsB,GAAE;;gCACd;AAOX;IALC,IAAA,oBAAU,GAAE;IACZ,IAAA,gBAAM,EAAC;QACN,QAAQ,EAAE,IAAI;QACd,QAAQ,EAAE,IAAI;KACf,CAAC;;qCACe;AAGjB;IADC,IAAA,gBAAM,GAAE;;kCACI;AAKb;IAHC,IAAA,gBAAM,EAAC;QACN,QAAQ,EAAE,IAAI;KACf,CAAC;;iCACW;AAMb;IAJC,IAAA,gBAAM,EAAC;QACN,OAAO,EAAE,CAAC;QACV,QAAQ,EAAE,IAAI;KACf,CAAC;;mCACY;AAKd;IAHC,IAAA,gBAAM,EAAC;QACN,QAAQ,EAAE,IAAI;KACf,CAAC;;kCACY;eA5BH,IAAI;IADhB,IAAA,gBAAM,GAAE;GACI,IAAI,CA6BhB"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"multifactor.entity.d.ts","sourceRoot":"","sources":["../../src/entities/multifactor.entity.ts"],"names":[],"mappings":"AAEA,qBACa,WAAW;IAEtB,EAAE,EAAE,MAAM,CAAC;IAGX,IAAI,EAAE,MAAM,CAAC;CACd"}
|
@@ -0,0 +1,28 @@
|
|
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.Multifactor = void 0;
|
13
|
+
const typeorm_1 = require("typeorm");
|
14
|
+
let Multifactor = class Multifactor {
|
15
|
+
};
|
16
|
+
exports.Multifactor = Multifactor;
|
17
|
+
__decorate([
|
18
|
+
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
19
|
+
__metadata("design:type", Number)
|
20
|
+
], Multifactor.prototype, "id", void 0);
|
21
|
+
__decorate([
|
22
|
+
(0, typeorm_1.Column)(),
|
23
|
+
__metadata("design:type", String)
|
24
|
+
], Multifactor.prototype, "slug", void 0);
|
25
|
+
exports.Multifactor = Multifactor = __decorate([
|
26
|
+
(0, typeorm_1.Entity)()
|
27
|
+
], Multifactor);
|
28
|
+
//# sourceMappingURL=multifactor.entity.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"multifactor.entity.js","sourceRoot":"","sources":["../../src/entities/multifactor.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA6E;AAGtE,IAAM,WAAW,GAAjB,MAAM,WAAW;CAMvB,CAAA;AANY,kCAAW;AAEtB;IADC,IAAA,gCAAsB,GAAE;;uCACd;AAGX;IADC,IAAA,gBAAM,GAAE;;yCACI;sBALF,WAAW;IADvB,IAAA,gBAAM,GAAE;GACI,WAAW,CAMvB"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"role.entity.d.ts","sourceRoot":"","sources":["../../src/entities/role.entity.ts"],"names":[],"mappings":"AAEA,qBACa,IAAI;IAEf,EAAE,EAAE,MAAM,CAAC;IAKX,IAAI,EAAE,MAAM,CAAC;CACd"}
|
@@ -0,0 +1,30 @@
|
|
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.Role = void 0;
|
13
|
+
const typeorm_1 = require("typeorm");
|
14
|
+
let Role = class Role {
|
15
|
+
};
|
16
|
+
exports.Role = Role;
|
17
|
+
__decorate([
|
18
|
+
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
19
|
+
__metadata("design:type", Number)
|
20
|
+
], Role.prototype, "id", void 0);
|
21
|
+
__decorate([
|
22
|
+
(0, typeorm_1.Column)({
|
23
|
+
unique: true,
|
24
|
+
}),
|
25
|
+
__metadata("design:type", String)
|
26
|
+
], Role.prototype, "slug", void 0);
|
27
|
+
exports.Role = Role = __decorate([
|
28
|
+
(0, typeorm_1.Entity)()
|
29
|
+
], Role);
|
30
|
+
//# sourceMappingURL=role.entity.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"role.entity.js","sourceRoot":"","sources":["../../src/entities/role.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA6E;AAGtE,IAAM,IAAI,GAAV,MAAM,IAAI;CAQhB,CAAA;AARY,oBAAI;AAEf;IADC,IAAA,gCAAsB,GAAE;;gCACd;AAKX;IAHC,IAAA,gBAAM,EAAC;QACN,MAAM,EAAE,IAAI;KACb,CAAC;;kCACW;eAPF,IAAI;IADhB,IAAA,gBAAM,GAAE;GACI,IAAI,CAQhB"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"route.entity.d.ts","sourceRoot":"","sources":["../../src/entities/route.entity.ts"],"names":[],"mappings":"AAEA,qBACa,KAAK;IAEhB,EAAE,EAAE,MAAM,CAAC;IAGX,GAAG,EAAE,MAAM,CAAC;IAKZ,MAAM,EAAE,MAAM,CAAC;CAChB"}
|
@@ -0,0 +1,34 @@
|
|
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.Route = void 0;
|
13
|
+
const typeorm_1 = require("typeorm");
|
14
|
+
let Route = class Route {
|
15
|
+
};
|
16
|
+
exports.Route = Route;
|
17
|
+
__decorate([
|
18
|
+
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
19
|
+
__metadata("design:type", Number)
|
20
|
+
], Route.prototype, "id", void 0);
|
21
|
+
__decorate([
|
22
|
+
(0, typeorm_1.Column)(),
|
23
|
+
__metadata("design:type", String)
|
24
|
+
], Route.prototype, "url", void 0);
|
25
|
+
__decorate([
|
26
|
+
(0, typeorm_1.Column)({
|
27
|
+
enum: ['GET', 'POST', 'PATCH', 'DELETE', 'PUT', 'OPTIONS', 'HEAD'],
|
28
|
+
}),
|
29
|
+
__metadata("design:type", String)
|
30
|
+
], Route.prototype, "method", void 0);
|
31
|
+
exports.Route = Route = __decorate([
|
32
|
+
(0, typeorm_1.Entity)()
|
33
|
+
], Route);
|
34
|
+
//# sourceMappingURL=route.entity.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"route.entity.js","sourceRoot":"","sources":["../../src/entities/route.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA6E;AAGtE,IAAM,KAAK,GAAX,MAAM,KAAK;CAWjB,CAAA;AAXY,sBAAK;AAEhB;IADC,IAAA,gCAAsB,GAAE;;iCACd;AAGX;IADC,IAAA,gBAAM,GAAE;;kCACG;AAKZ;IAHC,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,CAAC;KACnE,CAAC;;qCACa;gBAVJ,KAAK;IADjB,IAAA,gBAAM,GAAE;GACI,KAAK,CAWjB"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"screen.entity.d.ts","sourceRoot":"","sources":["../../src/entities/screen.entity.ts"],"names":[],"mappings":"AAEA,qBACa,MAAM;IAEjB,EAAE,EAAE,MAAM,CAAC;IAGX,IAAI,EAAE,MAAM,CAAC;IAKb,IAAI,CAAC,EAAE,MAAM,CAAC;CACf"}
|
@@ -0,0 +1,34 @@
|
|
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.Screen = void 0;
|
13
|
+
const typeorm_1 = require("typeorm");
|
14
|
+
let Screen = class Screen {
|
15
|
+
};
|
16
|
+
exports.Screen = Screen;
|
17
|
+
__decorate([
|
18
|
+
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
19
|
+
__metadata("design:type", Number)
|
20
|
+
], Screen.prototype, "id", void 0);
|
21
|
+
__decorate([
|
22
|
+
(0, typeorm_1.Column)(),
|
23
|
+
__metadata("design:type", String)
|
24
|
+
], Screen.prototype, "slug", void 0);
|
25
|
+
__decorate([
|
26
|
+
(0, typeorm_1.Column)({
|
27
|
+
nullable: true,
|
28
|
+
}),
|
29
|
+
__metadata("design:type", String)
|
30
|
+
], Screen.prototype, "icon", void 0);
|
31
|
+
exports.Screen = Screen = __decorate([
|
32
|
+
(0, typeorm_1.Entity)()
|
33
|
+
], Screen);
|
34
|
+
//# sourceMappingURL=screen.entity.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"screen.entity.js","sourceRoot":"","sources":["../../src/entities/screen.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA6E;AAGtE,IAAM,MAAM,GAAZ,MAAM,MAAM;CAWlB,CAAA;AAXY,wBAAM;AAEjB;IADC,IAAA,gCAAsB,GAAE;;kCACd;AAGX;IADC,IAAA,gBAAM,GAAE;;oCACI;AAKb;IAHC,IAAA,gBAAM,EAAC;QACN,QAAQ,EAAE,IAAI;KACf,CAAC;;oCACY;iBAVH,MAAM;IADlB,IAAA,gBAAM,GAAE;GACI,MAAM,CAWlB"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"setting-group.entity.d.ts","sourceRoot":"","sources":["../../src/entities/setting-group.entity.ts"],"names":[],"mappings":"AAEA,qBACa,YAAY;IAEvB,EAAE,EAAE,MAAM,CAAC;IAKX,IAAI,EAAE,MAAM,CAAC;IAMb,IAAI,EAAE,MAAM,CAAC;CACd"}
|
@@ -0,0 +1,37 @@
|
|
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.SettingGroup = void 0;
|
13
|
+
const typeorm_1 = require("typeorm");
|
14
|
+
let SettingGroup = class SettingGroup {
|
15
|
+
};
|
16
|
+
exports.SettingGroup = SettingGroup;
|
17
|
+
__decorate([
|
18
|
+
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
19
|
+
__metadata("design:type", Number)
|
20
|
+
], SettingGroup.prototype, "id", void 0);
|
21
|
+
__decorate([
|
22
|
+
(0, typeorm_1.Column)({
|
23
|
+
length: 31,
|
24
|
+
}),
|
25
|
+
__metadata("design:type", String)
|
26
|
+
], SettingGroup.prototype, "icon", void 0);
|
27
|
+
__decorate([
|
28
|
+
(0, typeorm_1.Column)({
|
29
|
+
unique: true,
|
30
|
+
length: 63,
|
31
|
+
}),
|
32
|
+
__metadata("design:type", String)
|
33
|
+
], SettingGroup.prototype, "slug", void 0);
|
34
|
+
exports.SettingGroup = SettingGroup = __decorate([
|
35
|
+
(0, typeorm_1.Entity)()
|
36
|
+
], SettingGroup);
|
37
|
+
//# sourceMappingURL=setting-group.entity.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"setting-group.entity.js","sourceRoot":"","sources":["../../src/entities/setting-group.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA6E;AAGtE,IAAM,YAAY,GAAlB,MAAM,YAAY;CAcxB,CAAA;AAdY,oCAAY;AAEvB;IADC,IAAA,gCAAsB,GAAE;;wCACd;AAKX;IAHC,IAAA,gBAAM,EAAC;QACN,MAAM,EAAE,EAAE;KACX,CAAC;;0CACW;AAMb;IAJC,IAAA,gBAAM,EAAC;QACN,MAAM,EAAE,IAAI;QACZ,MAAM,EAAE,EAAE;KACX,CAAC;;0CACW;uBAbF,YAAY;IADxB,IAAA,gBAAM,GAAE;GACI,YAAY,CAcxB"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"setting.entity.d.ts","sourceRoot":"","sources":["../../src/entities/setting.entity.ts"],"names":[],"mappings":"AAEA,qBACa,OAAO;IAElB,EAAE,EAAE,MAAM,CAAC;IAMX,IAAI,EAAE,MAAM,CAAC;IAKb,IAAI,EAAE,MAAM,CAAC;IAKb,KAAK,EAAE,MAAM,CAAC;IAKd,YAAY,EAAE,OAAO,CAAC;CACvB"}
|
@@ -0,0 +1,49 @@
|
|
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.Setting = void 0;
|
13
|
+
const typeorm_1 = require("typeorm");
|
14
|
+
let Setting = class Setting {
|
15
|
+
};
|
16
|
+
exports.Setting = Setting;
|
17
|
+
__decorate([
|
18
|
+
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
19
|
+
__metadata("design:type", Number)
|
20
|
+
], Setting.prototype, "id", void 0);
|
21
|
+
__decorate([
|
22
|
+
(0, typeorm_1.Column)({
|
23
|
+
unique: true,
|
24
|
+
length: 63,
|
25
|
+
}),
|
26
|
+
__metadata("design:type", String)
|
27
|
+
], Setting.prototype, "slug", void 0);
|
28
|
+
__decorate([
|
29
|
+
(0, typeorm_1.Column)({
|
30
|
+
enum: ['string', 'number', 'boolean', 'json'],
|
31
|
+
}),
|
32
|
+
__metadata("design:type", String)
|
33
|
+
], Setting.prototype, "type", void 0);
|
34
|
+
__decorate([
|
35
|
+
(0, typeorm_1.Column)({
|
36
|
+
length: 1023,
|
37
|
+
}),
|
38
|
+
__metadata("design:type", String)
|
39
|
+
], Setting.prototype, "value", void 0);
|
40
|
+
__decorate([
|
41
|
+
(0, typeorm_1.Column)({
|
42
|
+
default: false,
|
43
|
+
}),
|
44
|
+
__metadata("design:type", Boolean)
|
45
|
+
], Setting.prototype, "userOverride", void 0);
|
46
|
+
exports.Setting = Setting = __decorate([
|
47
|
+
(0, typeorm_1.Entity)()
|
48
|
+
], Setting);
|
49
|
+
//# sourceMappingURL=setting.entity.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"setting.entity.js","sourceRoot":"","sources":["../../src/entities/setting.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA6E;AAGtE,IAAM,OAAO,GAAb,MAAM,OAAO;CAwBnB,CAAA;AAxBY,0BAAO;AAElB;IADC,IAAA,gCAAsB,GAAE;;mCACd;AAMX;IAJC,IAAA,gBAAM,EAAC;QACN,MAAM,EAAE,IAAI;QACZ,MAAM,EAAE,EAAE;KACX,CAAC;;qCACW;AAKb;IAHC,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,CAAC;KAC9C,CAAC;;qCACW;AAKb;IAHC,IAAA,gBAAM,EAAC;QACN,MAAM,EAAE,IAAI;KACb,CAAC;;sCACY;AAKd;IAHC,IAAA,gBAAM,EAAC;QACN,OAAO,EAAE,KAAK;KACf,CAAC;;6CACoB;kBAvBX,OAAO;IADnB,IAAA,gBAAM,GAAE;GACI,OAAO,CAwBnB"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"translation.entity.d.ts","sourceRoot":"","sources":["../../src/entities/translation.entity.ts"],"names":[],"mappings":"AAEA,qBACa,iBAAiB;IAE5B,EAAE,EAAE,MAAM,CAAC;IAGX,SAAS,EAAE,MAAM,CAAC;IAGlB,YAAY,EAAE,MAAM,CAAC;IAGrB,IAAI,EAAE,MAAM,CAAC;IAGb,KAAK,EAAE,MAAM,CAAC;CACf"}
|
@@ -0,0 +1,40 @@
|
|
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.TranslationEntity = void 0;
|
13
|
+
const typeorm_1 = require("typeorm");
|
14
|
+
let TranslationEntity = class TranslationEntity {
|
15
|
+
};
|
16
|
+
exports.TranslationEntity = TranslationEntity;
|
17
|
+
__decorate([
|
18
|
+
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
19
|
+
__metadata("design:type", Number)
|
20
|
+
], TranslationEntity.prototype, "id", void 0);
|
21
|
+
__decorate([
|
22
|
+
(0, typeorm_1.JoinColumn)(),
|
23
|
+
__metadata("design:type", Number)
|
24
|
+
], TranslationEntity.prototype, "locale_id", void 0);
|
25
|
+
__decorate([
|
26
|
+
(0, typeorm_1.JoinColumn)(),
|
27
|
+
__metadata("design:type", Number)
|
28
|
+
], TranslationEntity.prototype, "namespace_id", void 0);
|
29
|
+
__decorate([
|
30
|
+
(0, typeorm_1.Column)(),
|
31
|
+
__metadata("design:type", String)
|
32
|
+
], TranslationEntity.prototype, "name", void 0);
|
33
|
+
__decorate([
|
34
|
+
(0, typeorm_1.Column)(),
|
35
|
+
__metadata("design:type", String)
|
36
|
+
], TranslationEntity.prototype, "value", void 0);
|
37
|
+
exports.TranslationEntity = TranslationEntity = __decorate([
|
38
|
+
(0, typeorm_1.Entity)()
|
39
|
+
], TranslationEntity);
|
40
|
+
//# sourceMappingURL=translation.entity.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"translation.entity.js","sourceRoot":"","sources":["../../src/entities/translation.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA6E;AAGtE,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;CAe7B,CAAA;AAfY,8CAAiB;AAE5B;IADC,IAAA,gCAAsB,GAAE;;6CACd;AAGX;IADC,IAAA,oBAAU,GAAE;;oDACK;AAGlB;IADC,IAAA,oBAAU,GAAE;;uDACQ;AAGrB;IADC,IAAA,gBAAM,GAAE;;+CACI;AAGb;IADC,IAAA,gBAAM,GAAE;;gDACK;4BAdH,iBAAiB;IAD7B,IAAA,gBAAM,GAAE;GACI,iBAAiB,CAe7B"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"user.entity.d.ts","sourceRoot":"","sources":["../../src/entities/user.entity.ts"],"names":[],"mappings":"AAEA,qBACa,IAAI;IAEf,EAAE,EAAE,MAAM,CAAC;IAMX,cAAc,CAAC,EAAE,MAAM,CAAC;IAGxB,IAAI,EAAE,MAAM,CAAC;IAGb,KAAK,EAAE,MAAM,CAAC;IAGd,QAAQ,EAAE,MAAM,CAAC;IAKjB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf"}
|
@@ -0,0 +1,49 @@
|
|
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.User = void 0;
|
13
|
+
const typeorm_1 = require("typeorm");
|
14
|
+
let User = class User {
|
15
|
+
};
|
16
|
+
exports.User = User;
|
17
|
+
__decorate([
|
18
|
+
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
19
|
+
__metadata("design:type", Number)
|
20
|
+
], User.prototype, "id", void 0);
|
21
|
+
__decorate([
|
22
|
+
(0, typeorm_1.Column)({
|
23
|
+
nullable: true,
|
24
|
+
}),
|
25
|
+
(0, typeorm_1.JoinColumn)(),
|
26
|
+
__metadata("design:type", Number)
|
27
|
+
], User.prototype, "multifactor_id", void 0);
|
28
|
+
__decorate([
|
29
|
+
(0, typeorm_1.Column)(),
|
30
|
+
__metadata("design:type", String)
|
31
|
+
], User.prototype, "name", void 0);
|
32
|
+
__decorate([
|
33
|
+
(0, typeorm_1.Column)(),
|
34
|
+
__metadata("design:type", String)
|
35
|
+
], User.prototype, "email", void 0);
|
36
|
+
__decorate([
|
37
|
+
(0, typeorm_1.Column)(),
|
38
|
+
__metadata("design:type", String)
|
39
|
+
], User.prototype, "password", void 0);
|
40
|
+
__decorate([
|
41
|
+
(0, typeorm_1.Column)({
|
42
|
+
nullable: true,
|
43
|
+
}),
|
44
|
+
__metadata("design:type", String)
|
45
|
+
], User.prototype, "code", void 0);
|
46
|
+
exports.User = User = __decorate([
|
47
|
+
(0, typeorm_1.Entity)()
|
48
|
+
], User);
|
49
|
+
//# sourceMappingURL=user.entity.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"user.entity.js","sourceRoot":"","sources":["../../src/entities/user.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA6E;AAGtE,IAAM,IAAI,GAAV,MAAM,IAAI;CAuBhB,CAAA;AAvBY,oBAAI;AAEf;IADC,IAAA,gCAAsB,GAAE;;gCACd;AAMX;IAJC,IAAA,gBAAM,EAAC;QACN,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,oBAAU,GAAE;;4CACW;AAGxB;IADC,IAAA,gBAAM,GAAE;;kCACI;AAGb;IADC,IAAA,gBAAM,GAAE;;mCACK;AAGd;IADC,IAAA,gBAAM,GAAE;;sCACQ;AAKjB;IAHC,IAAA,gBAAM,EAAC;QACN,QAAQ,EAAE,IAAI;KACf,CAAC;;kCACY;eAtBH,IAAI;IADhB,IAAA,gBAAM,GAAE;GACI,IAAI,CAuBhB"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@hedhog/admin",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.54",
|
4
4
|
"private": false,
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"scripts": {
|
@@ -11,6 +11,7 @@
|
|
11
11
|
},
|
12
12
|
"files": [
|
13
13
|
"dist/**/*",
|
14
|
+
"src/entities/**/*.ts",
|
14
15
|
"src/migrations/**/*.ts",
|
15
16
|
"src/**/*.ejs",
|
16
17
|
"hedhog.yaml"
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { Entity, PrimaryGeneratedColumn, Column } from 'typeorm';
|
2
|
+
|
3
|
+
@Entity()
|
4
|
+
export class Country {
|
5
|
+
@PrimaryGeneratedColumn({
|
6
|
+
unsigned: true,
|
7
|
+
})
|
8
|
+
id: number;
|
9
|
+
|
10
|
+
@Column()
|
11
|
+
name: string;
|
12
|
+
|
13
|
+
@Column({
|
14
|
+
length: 3,
|
15
|
+
})
|
16
|
+
code: string;
|
17
|
+
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
export * from './user.entity';
|
2
|
+
export * from './translation.entity';
|
3
|
+
export * from './screen.entity';
|
4
|
+
export * from './role.entity';
|
5
|
+
export * from './multifactor.entity';
|
6
|
+
export * from './locale.entity';
|
7
|
+
export * from './country.entity';
|
8
|
+
export * from './menu.entity';
|
9
|
+
export * from './route.entity';
|
10
|
+
export * from './setting-group.entity';
|
11
|
+
export * from './setting.entity';
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import { Entity, PrimaryGeneratedColumn, Column, JoinColumn } from 'typeorm';
|
2
|
+
|
3
|
+
@Entity()
|
4
|
+
export class Locale {
|
5
|
+
@PrimaryGeneratedColumn({
|
6
|
+
unsigned: true,
|
7
|
+
})
|
8
|
+
id: number;
|
9
|
+
|
10
|
+
@JoinColumn()
|
11
|
+
@Column({
|
12
|
+
unsigned: true,
|
13
|
+
})
|
14
|
+
country_id: number;
|
15
|
+
|
16
|
+
@Column({
|
17
|
+
length: 2,
|
18
|
+
})
|
19
|
+
code: string;
|
20
|
+
|
21
|
+
@Column({
|
22
|
+
length: 2,
|
23
|
+
})
|
24
|
+
region: string;
|
25
|
+
|
26
|
+
@Column()
|
27
|
+
enabled: boolean;
|
28
|
+
}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
import { Entity, PrimaryGeneratedColumn, Column, JoinColumn } from 'typeorm';
|
2
|
+
|
3
|
+
@Entity()
|
4
|
+
export class Menu {
|
5
|
+
@PrimaryGeneratedColumn()
|
6
|
+
id: number;
|
7
|
+
|
8
|
+
@JoinColumn()
|
9
|
+
@Column({
|
10
|
+
nullable: true,
|
11
|
+
unsigned: true,
|
12
|
+
})
|
13
|
+
menu_id?: string;
|
14
|
+
|
15
|
+
@Column()
|
16
|
+
slug: string;
|
17
|
+
|
18
|
+
@Column({
|
19
|
+
nullable: true,
|
20
|
+
})
|
21
|
+
url?: string;
|
22
|
+
|
23
|
+
@Column({
|
24
|
+
default: 0,
|
25
|
+
unsigned: true,
|
26
|
+
})
|
27
|
+
order: number;
|
28
|
+
|
29
|
+
@Column({
|
30
|
+
nullable: true,
|
31
|
+
})
|
32
|
+
icon?: string;
|
33
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { Entity, PrimaryGeneratedColumn, Column, JoinColumn } from 'typeorm';
|
2
|
+
|
3
|
+
@Entity()
|
4
|
+
export class Route {
|
5
|
+
@PrimaryGeneratedColumn()
|
6
|
+
id: number;
|
7
|
+
|
8
|
+
@Column()
|
9
|
+
url: string;
|
10
|
+
|
11
|
+
@Column({
|
12
|
+
enum: ['GET', 'POST', 'PATCH', 'DELETE', 'PUT', 'OPTIONS', 'HEAD'],
|
13
|
+
})
|
14
|
+
method: string;
|
15
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { Entity, PrimaryGeneratedColumn, Column, JoinColumn } from 'typeorm';
|
2
|
+
|
3
|
+
@Entity()
|
4
|
+
export class Screen {
|
5
|
+
@PrimaryGeneratedColumn()
|
6
|
+
id: number;
|
7
|
+
|
8
|
+
@Column()
|
9
|
+
slug: string;
|
10
|
+
|
11
|
+
@Column({
|
12
|
+
nullable: true,
|
13
|
+
})
|
14
|
+
icon?: string;
|
15
|
+
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { Entity, PrimaryGeneratedColumn, Column, JoinColumn } from 'typeorm';
|
2
|
+
|
3
|
+
@Entity()
|
4
|
+
export class SettingGroup {
|
5
|
+
@PrimaryGeneratedColumn()
|
6
|
+
id: number;
|
7
|
+
|
8
|
+
@Column({
|
9
|
+
length: 31,
|
10
|
+
})
|
11
|
+
icon: string;
|
12
|
+
|
13
|
+
@Column({
|
14
|
+
unique: true,
|
15
|
+
length: 63,
|
16
|
+
})
|
17
|
+
slug: string;
|
18
|
+
}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import { Entity, PrimaryGeneratedColumn, Column, JoinColumn } from 'typeorm';
|
2
|
+
|
3
|
+
@Entity()
|
4
|
+
export class Setting {
|
5
|
+
@PrimaryGeneratedColumn()
|
6
|
+
id: number;
|
7
|
+
|
8
|
+
@Column({
|
9
|
+
unique: true,
|
10
|
+
length: 63,
|
11
|
+
})
|
12
|
+
slug: string;
|
13
|
+
|
14
|
+
@Column({
|
15
|
+
enum: ['string', 'number', 'boolean', 'json'],
|
16
|
+
})
|
17
|
+
type: string;
|
18
|
+
|
19
|
+
@Column({
|
20
|
+
length: 1023,
|
21
|
+
})
|
22
|
+
value: string;
|
23
|
+
|
24
|
+
@Column({
|
25
|
+
default: false,
|
26
|
+
})
|
27
|
+
userOverride: boolean;
|
28
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import { Entity, PrimaryGeneratedColumn, Column, JoinColumn } from 'typeorm';
|
2
|
+
|
3
|
+
@Entity()
|
4
|
+
export class TranslationEntity {
|
5
|
+
@PrimaryGeneratedColumn()
|
6
|
+
id: number;
|
7
|
+
|
8
|
+
@JoinColumn()
|
9
|
+
locale_id: number;
|
10
|
+
|
11
|
+
@JoinColumn()
|
12
|
+
namespace_id: number;
|
13
|
+
|
14
|
+
@Column()
|
15
|
+
name: string;
|
16
|
+
|
17
|
+
@Column()
|
18
|
+
value: string;
|
19
|
+
}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import { Entity, PrimaryGeneratedColumn, Column, JoinColumn } from 'typeorm';
|
2
|
+
|
3
|
+
@Entity()
|
4
|
+
export class User {
|
5
|
+
@PrimaryGeneratedColumn()
|
6
|
+
id: number;
|
7
|
+
|
8
|
+
@Column({
|
9
|
+
nullable: true,
|
10
|
+
})
|
11
|
+
@JoinColumn()
|
12
|
+
multifactor_id?: number;
|
13
|
+
|
14
|
+
@Column()
|
15
|
+
name: string;
|
16
|
+
|
17
|
+
@Column()
|
18
|
+
email: string;
|
19
|
+
|
20
|
+
@Column()
|
21
|
+
password: string;
|
22
|
+
|
23
|
+
@Column({
|
24
|
+
nullable: true,
|
25
|
+
})
|
26
|
+
code?: string;
|
27
|
+
}
|
@@ -12,7 +12,16 @@ export class Migrate implements MigrationInterface {
|
|
12
12
|
await queryRunner.createTable(
|
13
13
|
new Table({
|
14
14
|
name: 'multifactors',
|
15
|
-
columns: [
|
15
|
+
columns: [
|
16
|
+
idColumn(),
|
17
|
+
{
|
18
|
+
name: 'slug',
|
19
|
+
type: 'varchar',
|
20
|
+
isUnique: true,
|
21
|
+
},
|
22
|
+
timestampColumn(),
|
23
|
+
timestampColumn('updated_at'),
|
24
|
+
],
|
16
25
|
}),
|
17
26
|
true,
|
18
27
|
);
|
@@ -55,9 +64,11 @@ export class Migrate implements MigrationInterface {
|
|
55
64
|
.values([
|
56
65
|
{
|
57
66
|
id: 1,
|
67
|
+
slug: 'email',
|
58
68
|
},
|
59
69
|
{
|
60
70
|
id: 2,
|
71
|
+
slug: 'application',
|
61
72
|
},
|
62
73
|
])
|
63
74
|
.execute();
|
@@ -1,10 +1,12 @@
|
|
1
1
|
import {
|
2
|
+
getRepository,
|
2
3
|
MigrationInterface,
|
3
4
|
QueryRunner,
|
4
5
|
Table,
|
5
6
|
TableForeignKey,
|
6
7
|
} from 'typeorm';
|
7
8
|
import { foreignColumn, idColumn, timestampColumn } from '@hedhog/utils';
|
9
|
+
import { Menu } from '../entities';
|
8
10
|
|
9
11
|
export class Migrate implements MigrationInterface {
|
10
12
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
@@ -122,17 +124,18 @@ export class Migrate implements MigrationInterface {
|
|
122
124
|
];
|
123
125
|
|
124
126
|
for (const menu of menus) {
|
125
|
-
const
|
126
|
-
|
127
|
-
|
128
|
-
.
|
129
|
-
.values({
|
127
|
+
const menuRepository = getRepository(Menu);
|
128
|
+
|
129
|
+
const m = await menuRepository.save(
|
130
|
+
await menuRepository.create({
|
130
131
|
url: menu.url,
|
131
132
|
order: menu.order,
|
132
133
|
icon: menu.icon,
|
133
134
|
slug: menu.slug,
|
134
|
-
})
|
135
|
-
|
135
|
+
}),
|
136
|
+
);
|
137
|
+
|
138
|
+
console.log('menu', m);
|
136
139
|
|
137
140
|
await queryRunner.manager
|
138
141
|
.createQueryBuilder()
|
@@ -140,12 +143,12 @@ export class Migrate implements MigrationInterface {
|
|
140
143
|
.into('menu_translations', ['menu_id', 'locale_id', 'name'])
|
141
144
|
.values([
|
142
145
|
{
|
143
|
-
menu_id: m.
|
146
|
+
menu_id: m.id,
|
144
147
|
locale_id: 1,
|
145
148
|
name: menu.name_en,
|
146
149
|
},
|
147
150
|
{
|
148
|
-
menu_id: m.
|
151
|
+
menu_id: m.id,
|
149
152
|
locale_id: 2,
|
150
153
|
name: menu.name_pt,
|
151
154
|
},
|
@@ -11,7 +11,16 @@ export class Migrate implements MigrationInterface {
|
|
11
11
|
await queryRunner.createTable(
|
12
12
|
new Table({
|
13
13
|
name: 'roles',
|
14
|
-
columns: [
|
14
|
+
columns: [
|
15
|
+
idColumn(),
|
16
|
+
{
|
17
|
+
name: 'slug',
|
18
|
+
type: 'varchar',
|
19
|
+
isUnique: true,
|
20
|
+
},
|
21
|
+
timestampColumn(),
|
22
|
+
timestampColumn('updated_at'),
|
23
|
+
],
|
15
24
|
}),
|
16
25
|
);
|
17
26
|
|
@@ -57,6 +66,7 @@ export class Migrate implements MigrationInterface {
|
|
57
66
|
name_pt: 'Administrador',
|
58
67
|
description_en: 'System administrator',
|
59
68
|
description_pt: 'Administrador do sistema',
|
69
|
+
slug: 'admin',
|
60
70
|
},
|
61
71
|
{
|
62
72
|
id: 2,
|
@@ -64,6 +74,7 @@ export class Migrate implements MigrationInterface {
|
|
64
74
|
name_pt: 'Gerenciador de telas',
|
65
75
|
description_en: 'Screen manager',
|
66
76
|
description_pt: 'Gerenciador de telas',
|
77
|
+
slug: 'screen-manager',
|
67
78
|
},
|
68
79
|
{
|
69
80
|
id: 3,
|
@@ -71,6 +82,7 @@ export class Migrate implements MigrationInterface {
|
|
71
82
|
name_pt: 'Acesso de administrador',
|
72
83
|
description_en: 'Function to access the admin panel',
|
73
84
|
description_pt: 'Função para ter acesso ao painel de administração',
|
85
|
+
slug: 'admin-access',
|
74
86
|
},
|
75
87
|
];
|
76
88
|
|
@@ -78,9 +90,10 @@ export class Migrate implements MigrationInterface {
|
|
78
90
|
await queryRunner.manager
|
79
91
|
.createQueryBuilder()
|
80
92
|
.insert()
|
81
|
-
.into('roles', ['id'])
|
93
|
+
.into('roles', ['id', 'slug'])
|
82
94
|
.values({
|
83
95
|
id: role.id,
|
96
|
+
slug: role.slug,
|
84
97
|
})
|
85
98
|
.execute();
|
86
99
|
|
@@ -253,7 +253,36 @@ export class Migrate implements MigrationInterface {
|
|
253
253
|
}
|
254
254
|
}
|
255
255
|
|
256
|
-
const
|
256
|
+
const routesGetRole3 = await queryRunner.manager
|
257
|
+
.createQueryBuilder()
|
258
|
+
.select('id')
|
259
|
+
.from('routes', 'r')
|
260
|
+
.where('r.url IN (:...urls)', {
|
261
|
+
urls: [
|
262
|
+
'/settings/groups',
|
263
|
+
'/settings/groups/:slug',
|
264
|
+
'/auth/verify',
|
265
|
+
'/menus/system',
|
266
|
+
],
|
267
|
+
})
|
268
|
+
.where('r.method = :method', { method: 'GET' })
|
269
|
+
.execute();
|
270
|
+
|
271
|
+
const routesPutRole3 = await queryRunner.manager
|
272
|
+
.createQueryBuilder()
|
273
|
+
.select('id')
|
274
|
+
.from('routes', 'r')
|
275
|
+
.where('r.url IN (:...urls)', {
|
276
|
+
urls: ['/settings/:slug'],
|
277
|
+
})
|
278
|
+
.where('r.method = :method', { method: 'PUT' })
|
279
|
+
.execute();
|
280
|
+
|
281
|
+
const adminAccessRoutes = [];
|
282
|
+
|
283
|
+
for (const route of [...routesGetRole3, ...routesPutRole3]) {
|
284
|
+
adminAccessRoutes.push(route.id);
|
285
|
+
}
|
257
286
|
|
258
287
|
for (const routeId of adminAccessRoutes) {
|
259
288
|
await queryRunner.manager
|