@hedhog/setting 0.0.8 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/setting/setting.controller.d.ts +0 -1
- package/dist/setting/setting.controller.d.ts.map +1 -1
- package/dist/setting/setting.controller.js +0 -11
- package/dist/setting/setting.controller.js.map +1 -1
- package/dist/setting/setting.service.d.ts +1 -6
- package/dist/setting/setting.service.d.ts.map +1 -1
- package/dist/setting/setting.service.js +2 -83
- package/dist/setting/setting.service.js.map +1 -1
- package/package.json +1 -3
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,2BAA2B,CAAC"}
|
package/dist/index.js
CHANGED
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
17
|
__exportStar(require("./setting.module"), exports);
|
18
|
+
__exportStar(require("./setting/setting.service"), exports);
|
18
19
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC"}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,4DAA0C"}
|
@@ -8,7 +8,6 @@ export declare class SettingsController {
|
|
8
8
|
private readonly settingService;
|
9
9
|
constructor(settingService: SettingService);
|
10
10
|
getSettingFromGroup(paginationParams: any, locale: any, slug: string): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
|
11
|
-
appearanceCSS(res: any): Promise<any>;
|
12
11
|
listSettingGroups(paginationParams: any, locale: any): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
|
13
12
|
listSettings(paginationParams: any, locale: any): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
|
14
13
|
get(settingId: number): Promise<any>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"setting.controller.d.ts","sourceRoot":"","sources":["../../src/setting/setting.controller.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"setting.controller.d.ts","sourceRoot":"","sources":["../../src/setting/setting.controller.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,qBAEa,kBAAkB;IAG3B,OAAO,CAAC,QAAQ,CAAC,cAAc;gBAAd,cAAc,EAAE,cAAc;IAI3C,mBAAmB,CACT,gBAAgB,KAAA,EACpB,MAAM,KAAA,EACD,IAAI,EAAE,MAAM;IAUvB,iBAAiB,CAAe,gBAAgB,KAAA,EAAY,MAAM,KAAA;IAKlE,YAAY,CAAe,gBAAgB,KAAA,EAAY,MAAM,KAAA;IAK7D,GAAG,CAAmC,SAAS,EAAE,MAAM;IAKvD,MAAM,CAAS,IAAI,EAAE,SAAS;IAK9B,kBAAkB,CACP,IAAI,EAAE,MAAM,EACnB,EAAE,KAAK,EAAE,EAAE,cAAc,EACzB,EAAE,EAAE,EAAE;;KAAA;IAMV,cAAc,CAAgB,IAAI,EAAE,MAAM,EAAU,IAAI,EAAE,SAAS;IAKnE,eAAe,CAAS,IAAI,EAAE,UAAU;;;IAKxC,MAAM,CACwB,SAAS,EAAE,MAAM,EAC3C,IAAI,EAAE,SAAS;IASnB,MAAM,CAAS,IAAI,EAAE,SAAS;CAGrC"}
|
@@ -30,9 +30,6 @@ let SettingsController = class SettingsController {
|
|
30
30
|
async getSettingFromGroup(paginationParams, locale, slug) {
|
31
31
|
return this.settingService.getSettingFromGroup(locale, paginationParams, slug);
|
32
32
|
}
|
33
|
-
async appearanceCSS(res) {
|
34
|
-
return this.settingService.getAppearanceCSS(res);
|
35
|
-
}
|
36
33
|
async listSettingGroups(paginationParams, locale) {
|
37
34
|
return this.settingService.listSettingGroups(locale, paginationParams);
|
38
35
|
}
|
@@ -74,14 +71,6 @@ __decorate([
|
|
74
71
|
__metadata("design:paramtypes", [Object, Object, String]),
|
75
72
|
__metadata("design:returntype", Promise)
|
76
73
|
], SettingsController.prototype, "getSettingFromGroup", null);
|
77
|
-
__decorate([
|
78
|
-
(0, utils_1.Public)(),
|
79
|
-
(0, common_1.Get)('appearance.css'),
|
80
|
-
__param(0, (0, common_1.Res)()),
|
81
|
-
__metadata("design:type", Function),
|
82
|
-
__metadata("design:paramtypes", [Object]),
|
83
|
-
__metadata("design:returntype", Promise)
|
84
|
-
], SettingsController.prototype, "appearanceCSS", null);
|
85
74
|
__decorate([
|
86
75
|
(0, common_1.Get)('group'),
|
87
76
|
__param(0, (0, pagination_1.Pagination)()),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"setting.controller.js","sourceRoot":"","sources":["../../src/setting/setting.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,mDAAgD;AAChD,
|
1
|
+
{"version":3,"file":"setting.controller.js","sourceRoot":"","sources":["../../src/setting/setting.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,mDAAgD;AAChD,2CAYwB;AACxB,2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AAE,CAAA;IACN,WAAA,IAAA,YAAI,GAAE,CAAA;;6CADY,iCAAc;;4DAIlC;AAGK;IADL,IAAA,YAAG,EAAC,OAAO,CAAC;IACS,WAAA,IAAA,cAAK,EAAC,MAAM,CAAC,CAAA;IAAgB,WAAA,IAAA,aAAI,GAAE,CAAA;;6CAAO,sBAAS;;wDAExE;AAGK;IADL,IAAA,YAAG,GAAE;IACiB,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAO,wBAAU;;yDAE7C;AAGK;IADL,IAAA,cAAK,EAAC,YAAY,CAAC;IAEjB,WAAA,IAAA,cAAK,EAAC,WAAW,EAAE,qBAAY,CAAC,CAAA;IAChC,WAAA,IAAA,aAAI,GAAE,CAAA;;6CAAO,sBAAS;;gDAMxB;AAGK;IADL,IAAA,eAAM,GAAE;IACK,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAO,sBAAS;;gDAEnC;6BAxEU,kBAAkB;IAF9B,IAAA,YAAI,GAAE;IACN,IAAA,mBAAU,EAAC,SAAS,CAAC;IAGjB,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,gCAAc,CAAC,CAAC,CAAA;qCACR,gCAAc;GAHtC,kBAAkB,CAyE9B"}
|
@@ -1,7 +1,5 @@
|
|
1
|
-
import { FileService } from '@hedhog/file';
|
2
1
|
import { PaginationDTO, PaginationService } from '@hedhog/pagination';
|
3
2
|
import { PrismaService } from '@hedhog/prisma';
|
4
|
-
import { Response } from 'express';
|
5
3
|
import { DeleteDTO } from './dto/delete.dto';
|
6
4
|
import { CreateDTO } from './dto/create.dto';
|
7
5
|
import { SettingDTO } from './dto/setting.dto';
|
@@ -9,10 +7,7 @@ import { UpdateDTO } from './dto/update.dto';
|
|
9
7
|
export declare class SettingService {
|
10
8
|
private readonly prismaService;
|
11
9
|
private readonly paginationService;
|
12
|
-
|
13
|
-
constructor(prismaService: PrismaService, paginationService: PaginationService, fileService: FileService);
|
14
|
-
getAppearanceCSS(res: Response): Promise<any>;
|
15
|
-
updateAppearanceSettings(): Promise<void>;
|
10
|
+
constructor(prismaService: PrismaService, paginationService: PaginationService);
|
16
11
|
setManySettings(data: SettingDTO): Promise<{
|
17
12
|
success: boolean;
|
18
13
|
}>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"setting.service.d.ts","sourceRoot":"","sources":["../../src/setting/setting.service.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"setting.service.d.ts","sourceRoot":"","sources":["../../src/setting/setting.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAS/C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,qBACa,cAAc;IAGvB,OAAO,CAAC,QAAQ,CAAC,aAAa;IAE9B,OAAO,CAAC,QAAQ,CAAC,iBAAiB;gBAFjB,aAAa,EAAE,aAAa,EAE5B,iBAAiB,EAAE,iBAAiB;IAGjD,eAAe,CAAC,IAAI,EAAE,UAAU;;;IAgChC,mBAAmB,CAAC,MAAM,EAAE,GAAG,EAAE,gBAAgB,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM;IAiEpE,iBAAiB,CAAC,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,aAAa;IAqCjE,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,aAAa;IA0D5D,GAAG,CAAC,SAAS,EAAE,MAAM;IAMrB,MAAM,CAAC,EAAE,EAAE,SAAS;IAMpB,MAAM,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,SAAS,CAAA;KAAE;IAOpD,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS;IAiB5C,MAAM,CAAC,EAAE,GAAG,EAAE,EAAE,SAAS;IAgBzB,mBAAmB,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;IAkDhE,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE;CA6C/C"}
|
@@ -13,90 +13,14 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
13
13
|
};
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
15
15
|
exports.SettingService = void 0;
|
16
|
-
const file_1 = require("@hedhog/file");
|
17
16
|
const pagination_1 = require("@hedhog/pagination");
|
18
17
|
const prisma_1 = require("@hedhog/prisma");
|
19
18
|
const utils_1 = require("@hedhog/utils");
|
20
19
|
const common_1 = require("@nestjs/common");
|
21
20
|
let SettingService = class SettingService {
|
22
|
-
constructor(prismaService, paginationService
|
21
|
+
constructor(prismaService, paginationService) {
|
23
22
|
this.prismaService = prismaService;
|
24
23
|
this.paginationService = paginationService;
|
25
|
-
this.fileService = fileService;
|
26
|
-
}
|
27
|
-
async getAppearanceCSS(res) {
|
28
|
-
const fileCSS = await this.fileService.readStream(`appearance/theme.css`);
|
29
|
-
res.setHeader('Content-Type', 'text/css');
|
30
|
-
return fileCSS.pipe(res);
|
31
|
-
}
|
32
|
-
async updateAppearanceSettings() {
|
33
|
-
console.log({ updateAppearanceSettings: 'updateAppearanceSettings' });
|
34
|
-
const settings = await this.prismaService.setting.findMany({
|
35
|
-
where: {
|
36
|
-
setting_group: {
|
37
|
-
slug: 'appearance',
|
38
|
-
},
|
39
|
-
},
|
40
|
-
});
|
41
|
-
await this.fileService.uploadFromString('appearance', 'theme.css', `
|
42
|
-
@layer base {
|
43
|
-
:root {
|
44
|
-
--background: 0 0% 100%;
|
45
|
-
--foreground: 20 14.3% 4.1%;
|
46
|
-
--card: 0 0% 100%;
|
47
|
-
--card-foreground: 20 14.3% 4.1%;
|
48
|
-
--popover: 0 0% 100%;
|
49
|
-
--popover-foreground: 20 14.3% 4.1%;
|
50
|
-
--primary: 24.6 95% 53.1%;
|
51
|
-
--primary-foreground: 60 9.1% 97.8%;
|
52
|
-
--secondary: 60 4.8% 95.9%;
|
53
|
-
--secondary-foreground: 24 9.8% 10%;
|
54
|
-
--muted: 60 4.8% 95.9%;
|
55
|
-
--muted-foreground: 25 5.3% 44.7%;
|
56
|
-
--accent: 60 4.8% 95.9%;
|
57
|
-
--accent-foreground: 24 9.8% 10%;
|
58
|
-
--destructive: 0 84.2% 60.2%;
|
59
|
-
--destructive-foreground: 60 9.1% 97.8%;
|
60
|
-
--border: 20 5.9% 90%;
|
61
|
-
--input: 20 5.9% 90%;
|
62
|
-
--ring: 24.6 95% 53.1%;
|
63
|
-
--radius: 0.5rem;
|
64
|
-
--chart-1: 12 76% 61%;
|
65
|
-
--chart-2: 173 58% 39%;
|
66
|
-
--chart-3: 197 37% 24%;
|
67
|
-
--chart-4: 43 74% 66%;
|
68
|
-
--chart-5: 27 87% 67%;
|
69
|
-
}
|
70
|
-
|
71
|
-
.dark {
|
72
|
-
--background: 20 14.3% 4.1%;
|
73
|
-
--foreground: 60 9.1% 97.8%;
|
74
|
-
--card: 20 14.3% 4.1%;
|
75
|
-
--card-foreground: 60 9.1% 97.8%;
|
76
|
-
--popover: 20 14.3% 4.1%;
|
77
|
-
--popover-foreground: 60 9.1% 97.8%;
|
78
|
-
--primary: 20.5 90.2% 48.2%;
|
79
|
-
--primary-foreground: 60 9.1% 97.8%;
|
80
|
-
--secondary: 12 6.5% 15.1%;
|
81
|
-
--secondary-foreground: 60 9.1% 97.8%;
|
82
|
-
--muted: 12 6.5% 15.1%;
|
83
|
-
--muted-foreground: 24 5.4% 63.9%;
|
84
|
-
--accent: 12 6.5% 15.1%;
|
85
|
-
--accent-foreground: 60 9.1% 97.8%;
|
86
|
-
--destructive: 0 72.2% 50.6%;
|
87
|
-
--destructive-foreground: 60 9.1% 97.8%;
|
88
|
-
--border: 12 6.5% 15.1%;
|
89
|
-
--input: 12 6.5% 15.1%;
|
90
|
-
--ring: 20.5 90.2% 48.2%;
|
91
|
-
--chart-1: 220 70% 50%;
|
92
|
-
--chart-2: 160 60% 45%;
|
93
|
-
--chart-3: 30 80% 55%;
|
94
|
-
--chart-4: 280 65% 60%;
|
95
|
-
--chart-5: 340 75% 55%;
|
96
|
-
}
|
97
|
-
}
|
98
|
-
`, 'text/css');
|
99
|
-
console.log({ settings });
|
100
24
|
}
|
101
25
|
async setManySettings(data) {
|
102
26
|
const transaction = [];
|
@@ -121,9 +45,6 @@ let SettingService = class SettingService {
|
|
121
45
|
},
|
122
46
|
},
|
123
47
|
});
|
124
|
-
if (hasAppearance) {
|
125
|
-
await this.updateAppearanceSettings();
|
126
|
-
}
|
127
48
|
return { success: true };
|
128
49
|
}
|
129
50
|
async getSettingFromGroup(locale, paginationParams, slug) {
|
@@ -369,9 +290,7 @@ exports.SettingService = SettingService = __decorate([
|
|
369
290
|
(0, common_1.Injectable)(),
|
370
291
|
__param(0, (0, common_1.Inject)((0, common_1.forwardRef)(() => prisma_1.PrismaService))),
|
371
292
|
__param(1, (0, common_1.Inject)((0, common_1.forwardRef)(() => pagination_1.PaginationService))),
|
372
|
-
__param(2, (0, common_1.Inject)((0, common_1.forwardRef)(() => file_1.FileService))),
|
373
293
|
__metadata("design:paramtypes", [prisma_1.PrismaService,
|
374
|
-
pagination_1.PaginationService
|
375
|
-
file_1.FileService])
|
294
|
+
pagination_1.PaginationService])
|
376
295
|
], SettingService);
|
377
296
|
//# sourceMappingURL=setting.service.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"setting.service.js","sourceRoot":"","sources":["../../src/setting/setting.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;
|
1
|
+
{"version":3,"file":"setting.service.js","sourceRoot":"","s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C,CAAC;QAEH,WAAW,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;YAC9B,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,OAAO,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC;gBAClE,OAAO,CAAC,KAAK,CAAC;QAClB,CAAC,CAAC,CAAC;QAEH,OAAO,IAAI,CAAC;IACd,CAAC;CACF,CAAA;AA3VY,wCAAc;yBAAd,cAAc;IAD1B,IAAA,mBAAU,GAAE;IAGR,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,sBAAa,CAAC,CAAC,CAAA;IAEvC,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,8BAAiB,CAAC,CAAC,CAAA;qCADZ,sBAAa;QAET,8BAAiB;GAL5C,cAAc,CA2V1B"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@hedhog/setting",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.10",
|
4
4
|
"private": false,
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"scripts": {
|
@@ -22,14 +22,12 @@
|
|
22
22
|
"license": "MIT",
|
23
23
|
"description": "",
|
24
24
|
"peerDependencies": {
|
25
|
-
"@hedhog/admin": "latest",
|
26
25
|
"@hedhog/locale": "latest",
|
27
26
|
"@hedhog/pagination": "latest",
|
28
27
|
"@hedhog/prisma": "latest",
|
29
28
|
"@hedhog/utils": "latest"
|
30
29
|
},
|
31
30
|
"devDependencies": {
|
32
|
-
"@hedhog/admin": "^0.0.109",
|
33
31
|
"@hedhog/locale": "^0.0.17",
|
34
32
|
"@hedhog/pagination": "^0.0.17",
|
35
33
|
"@hedhog/prisma": "^0.0.11",
|