@hedhog/admin 0.0.93 → 0.0.94
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/menu/menu.controller.d.ts.map +1 -1
- package/dist/menu/menu.controller.js +0 -4
- package/dist/menu/menu.controller.js.map +1 -1
- package/dist/role/role.controller.d.ts.map +1 -1
- package/dist/role/role.controller.js +0 -4
- package/dist/role/role.controller.js.map +1 -1
- package/dist/route/route.controller.d.ts.map +1 -1
- package/dist/route/route.controller.js +0 -4
- package/dist/route/route.controller.js.map +1 -1
- package/dist/screen/screen.controller.d.ts.map +1 -1
- package/dist/screen/screen.controller.js +0 -4
- package/dist/screen/screen.controller.js.map +1 -1
- package/dist/setting/dto/setting-user.dto.d.ts +4 -0
- package/dist/setting/dto/setting-user.dto.d.ts.map +1 -0
- package/dist/{entities/role.entity.js → setting/dto/setting-user.dto.js} +8 -19
- package/dist/setting/dto/setting-user.dto.js.map +1 -0
- package/dist/setting/settings.controller.d.ts +7 -1
- package/dist/setting/settings.controller.d.ts.map +1 -1
- package/dist/setting/settings.controller.js +14 -12
- package/dist/setting/settings.controller.js.map +1 -1
- package/dist/setting/settings.service.d.ts +3 -1
- package/dist/setting/settings.service.d.ts.map +1 -1
- package/dist/setting/settings.service.js +8 -9
- package/dist/setting/settings.service.js.map +1 -1
- package/dist/user/user.controller.d.ts.map +1 -1
- package/dist/user/user.controller.js +0 -4
- package/dist/user/user.controller.js.map +1 -1
- package/hedhog.yaml +5 -1
- package/package.json +1 -1
- package/dist/entities/country.entity.d.ts +0 -6
- package/dist/entities/country.entity.d.ts.map +0 -1
- package/dist/entities/country.entity.js +0 -38
- package/dist/entities/country.entity.js.map +0 -1
- package/dist/entities/index.d.ts +0 -12
- package/dist/entities/index.d.ts.map +0 -1
- package/dist/entities/index.js +0 -28
- package/dist/entities/index.js.map +0 -1
- package/dist/entities/locale.entity.d.ts +0 -7
- package/dist/entities/locale.entity.d.ts.map +0 -1
- package/dist/entities/locale.entity.js +0 -44
- package/dist/entities/locale.entity.js.map +0 -1
- package/dist/entities/menu.entity.d.ts +0 -9
- package/dist/entities/menu.entity.d.ts.map +0 -1
- package/dist/entities/menu.entity.js +0 -57
- package/dist/entities/menu.entity.js.map +0 -1
- package/dist/entities/multifactor.entity.d.ts +0 -5
- package/dist/entities/multifactor.entity.d.ts.map +0 -1
- package/dist/entities/multifactor.entity.js +0 -30
- package/dist/entities/multifactor.entity.js.map +0 -1
- package/dist/entities/role.entity.d.ts +0 -5
- package/dist/entities/role.entity.d.ts.map +0 -1
- package/dist/entities/role.entity.js.map +0 -1
- package/dist/entities/route.entity.d.ts +0 -6
- package/dist/entities/route.entity.d.ts.map +0 -1
- package/dist/entities/route.entity.js +0 -36
- package/dist/entities/route.entity.js.map +0 -1
- package/dist/entities/screen.entity.d.ts +0 -6
- package/dist/entities/screen.entity.d.ts.map +0 -1
- package/dist/entities/screen.entity.js +0 -36
- package/dist/entities/screen.entity.js.map +0 -1
- package/dist/entities/setting-group.entity.d.ts +0 -6
- package/dist/entities/setting-group.entity.d.ts.map +0 -1
- package/dist/entities/setting-group.entity.js +0 -39
- package/dist/entities/setting-group.entity.js.map +0 -1
- package/dist/entities/setting.entity.d.ts +0 -8
- package/dist/entities/setting.entity.d.ts.map +0 -1
- package/dist/entities/setting.entity.js +0 -51
- package/dist/entities/setting.entity.js.map +0 -1
- package/dist/entities/translation.entity.d.ts +0 -8
- package/dist/entities/translation.entity.d.ts.map +0 -1
- package/dist/entities/translation.entity.js +0 -42
- package/dist/entities/translation.entity.js.map +0 -1
- package/dist/entities/user.entity.d.ts +0 -9
- package/dist/entities/user.entity.d.ts.map +0 -1
- package/dist/entities/user.entity.js +0 -51
- package/dist/entities/user.entity.js.map +0 -1
- package/src/entities/country.entity.ts +0 -19
- package/src/entities/index.ts +0 -11
- package/src/entities/locale.entity.ts +0 -24
- package/src/entities/menu.entity.ts +0 -35
- package/src/entities/multifactor.entity.ts +0 -12
- package/src/entities/role.entity.ts +0 -14
- package/src/entities/route.entity.ts +0 -17
- package/src/entities/screen.entity.ts +0 -17
- package/src/entities/setting-group.entity.ts +0 -20
- package/src/entities/setting.entity.ts +0 -30
- package/src/entities/translation.entity.ts +0 -21
- package/src/entities/user.entity.ts +0 -29
@@ -1,51 +0,0 @@
|
|
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
|
-
name: 'users',
|
49
|
-
})
|
50
|
-
], User);
|
51
|
-
//# sourceMappingURL=user.entity.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"user.entity.js","sourceRoot":"","sources":["../../src/entities/user.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA6E;AAKtE,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;IAHhB,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,OAAO;KACd,CAAC;GACW,IAAI,CAuBhB"}
|
@@ -1,19 +0,0 @@
|
|
1
|
-
import { Entity, PrimaryGeneratedColumn, Column } from 'typeorm';
|
2
|
-
|
3
|
-
@Entity({
|
4
|
-
name: 'countries',
|
5
|
-
})
|
6
|
-
export class Country {
|
7
|
-
@PrimaryGeneratedColumn({
|
8
|
-
unsigned: true,
|
9
|
-
})
|
10
|
-
id: number;
|
11
|
-
|
12
|
-
@Column()
|
13
|
-
name: string;
|
14
|
-
|
15
|
-
@Column({
|
16
|
-
length: 3,
|
17
|
-
})
|
18
|
-
code: string;
|
19
|
-
}
|
package/src/entities/index.ts
DELETED
@@ -1,11 +0,0 @@
|
|
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';
|
@@ -1,24 +0,0 @@
|
|
1
|
-
import { Entity, PrimaryGeneratedColumn, Column, JoinColumn } from 'typeorm';
|
2
|
-
|
3
|
-
@Entity({
|
4
|
-
name: 'locales',
|
5
|
-
})
|
6
|
-
export class Locale {
|
7
|
-
@PrimaryGeneratedColumn({
|
8
|
-
unsigned: true,
|
9
|
-
})
|
10
|
-
id: number;
|
11
|
-
|
12
|
-
@Column({
|
13
|
-
length: 2,
|
14
|
-
})
|
15
|
-
code: string;
|
16
|
-
|
17
|
-
@Column({
|
18
|
-
length: 2,
|
19
|
-
})
|
20
|
-
region: string;
|
21
|
-
|
22
|
-
@Column()
|
23
|
-
enabled: boolean;
|
24
|
-
}
|
@@ -1,35 +0,0 @@
|
|
1
|
-
import { Entity, PrimaryGeneratedColumn, Column, JoinColumn } from 'typeorm';
|
2
|
-
|
3
|
-
@Entity({
|
4
|
-
name: 'menus',
|
5
|
-
})
|
6
|
-
export class Menu {
|
7
|
-
@PrimaryGeneratedColumn()
|
8
|
-
id: number;
|
9
|
-
|
10
|
-
@JoinColumn()
|
11
|
-
@Column({
|
12
|
-
nullable: true,
|
13
|
-
unsigned: true,
|
14
|
-
})
|
15
|
-
menu_id?: string;
|
16
|
-
|
17
|
-
@Column()
|
18
|
-
slug: string;
|
19
|
-
|
20
|
-
@Column({
|
21
|
-
nullable: true,
|
22
|
-
})
|
23
|
-
url?: string;
|
24
|
-
|
25
|
-
@Column({
|
26
|
-
default: 0,
|
27
|
-
unsigned: true,
|
28
|
-
})
|
29
|
-
order: number;
|
30
|
-
|
31
|
-
@Column({
|
32
|
-
nullable: true,
|
33
|
-
})
|
34
|
-
icon?: string;
|
35
|
-
}
|
@@ -1,17 +0,0 @@
|
|
1
|
-
import { Entity, PrimaryGeneratedColumn, Column, JoinColumn } from 'typeorm';
|
2
|
-
|
3
|
-
@Entity({
|
4
|
-
name: 'routes',
|
5
|
-
})
|
6
|
-
export class Route {
|
7
|
-
@PrimaryGeneratedColumn()
|
8
|
-
id: number;
|
9
|
-
|
10
|
-
@Column()
|
11
|
-
url: string;
|
12
|
-
|
13
|
-
@Column({
|
14
|
-
enum: ['GET', 'POST', 'PATCH', 'DELETE', 'PUT', 'OPTIONS', 'HEAD'],
|
15
|
-
})
|
16
|
-
method: string;
|
17
|
-
}
|
@@ -1,17 +0,0 @@
|
|
1
|
-
import { Entity, PrimaryGeneratedColumn, Column, JoinColumn } from 'typeorm';
|
2
|
-
|
3
|
-
@Entity({
|
4
|
-
name: 'screens',
|
5
|
-
})
|
6
|
-
export class Screen {
|
7
|
-
@PrimaryGeneratedColumn()
|
8
|
-
id: number;
|
9
|
-
|
10
|
-
@Column()
|
11
|
-
slug: string;
|
12
|
-
|
13
|
-
@Column({
|
14
|
-
nullable: true,
|
15
|
-
})
|
16
|
-
icon?: string;
|
17
|
-
}
|
@@ -1,20 +0,0 @@
|
|
1
|
-
import { Entity, PrimaryGeneratedColumn, Column, JoinColumn } from 'typeorm';
|
2
|
-
|
3
|
-
@Entity({
|
4
|
-
name: 'setting_groups',
|
5
|
-
})
|
6
|
-
export class SettingGroup {
|
7
|
-
@PrimaryGeneratedColumn()
|
8
|
-
id: number;
|
9
|
-
|
10
|
-
@Column({
|
11
|
-
length: 31,
|
12
|
-
})
|
13
|
-
icon: string;
|
14
|
-
|
15
|
-
@Column({
|
16
|
-
unique: true,
|
17
|
-
length: 63,
|
18
|
-
})
|
19
|
-
slug: string;
|
20
|
-
}
|
@@ -1,30 +0,0 @@
|
|
1
|
-
import { Entity, PrimaryGeneratedColumn, Column, JoinColumn } from 'typeorm';
|
2
|
-
|
3
|
-
@Entity({
|
4
|
-
name: 'settings',
|
5
|
-
})
|
6
|
-
export class Setting {
|
7
|
-
@PrimaryGeneratedColumn()
|
8
|
-
id: number;
|
9
|
-
|
10
|
-
@Column({
|
11
|
-
unique: true,
|
12
|
-
length: 63,
|
13
|
-
})
|
14
|
-
slug: string;
|
15
|
-
|
16
|
-
@Column({
|
17
|
-
enum: ['string', 'number', 'boolean', 'json'],
|
18
|
-
})
|
19
|
-
type: string;
|
20
|
-
|
21
|
-
@Column({
|
22
|
-
length: 1023,
|
23
|
-
})
|
24
|
-
value: string;
|
25
|
-
|
26
|
-
@Column({
|
27
|
-
default: false,
|
28
|
-
})
|
29
|
-
userOverride: boolean;
|
30
|
-
}
|
@@ -1,21 +0,0 @@
|
|
1
|
-
import { Entity, PrimaryGeneratedColumn, Column, JoinColumn } from 'typeorm';
|
2
|
-
|
3
|
-
@Entity({
|
4
|
-
name: 'translations',
|
5
|
-
})
|
6
|
-
export class TranslationEntity {
|
7
|
-
@PrimaryGeneratedColumn()
|
8
|
-
id: number;
|
9
|
-
|
10
|
-
@JoinColumn()
|
11
|
-
locale_id: number;
|
12
|
-
|
13
|
-
@JoinColumn()
|
14
|
-
namespace_id: number;
|
15
|
-
|
16
|
-
@Column()
|
17
|
-
name: string;
|
18
|
-
|
19
|
-
@Column()
|
20
|
-
value: string;
|
21
|
-
}
|
@@ -1,29 +0,0 @@
|
|
1
|
-
import { Entity, PrimaryGeneratedColumn, Column, JoinColumn } from 'typeorm';
|
2
|
-
|
3
|
-
@Entity({
|
4
|
-
name: 'users',
|
5
|
-
})
|
6
|
-
export class User {
|
7
|
-
@PrimaryGeneratedColumn()
|
8
|
-
id: number;
|
9
|
-
|
10
|
-
@Column({
|
11
|
-
nullable: true,
|
12
|
-
})
|
13
|
-
@JoinColumn()
|
14
|
-
multifactor_id?: number;
|
15
|
-
|
16
|
-
@Column()
|
17
|
-
name: string;
|
18
|
-
|
19
|
-
@Column()
|
20
|
-
email: string;
|
21
|
-
|
22
|
-
@Column()
|
23
|
-
password: string;
|
24
|
-
|
25
|
-
@Column({
|
26
|
-
nullable: true,
|
27
|
-
})
|
28
|
-
code?: string;
|
29
|
-
}
|