@fecommunity/reactpress-server 1.0.0-beta.47 → 1.0.0-beta.48

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.
@@ -200,4 +200,4 @@ if (usePM2) {
200
200
  startWithPM2();
201
201
  } else {
202
202
  startWithNode();
203
- }
203
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,73 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const core_1 = require("@nestjs/core");
4
+ const swagger_1 = require("@nestjs/swagger");
5
+ const fs_1 = require("fs");
6
+ const path_1 = require("path");
7
+ const app_module_1 = require("./app.module");
8
+ async function generateSwaggerJson() {
9
+ let app;
10
+ try {
11
+ console.log('🚀 Starting Swagger JSON generation...');
12
+ app = await core_1.NestFactory.createApplicationContext(app_module_1.AppModule, {
13
+ logger: ['error', 'warn'],
14
+ });
15
+ const configService = app.get('ConfigService');
16
+ const apiPrefix = configService.get('SERVER_API_PREFIX', '/api');
17
+ console.log('📝 Configuring Swagger documentation...');
18
+ const swaggerConfig = new swagger_1.DocumentBuilder()
19
+ .setTitle('ReactPress API Documentation')
20
+ .setDescription('Comprehensive API documentation for ReactPress - A modern content management system built with NestJS')
21
+ .setVersion('2.0')
22
+ .setContact('ReactPress Team', 'https://github.com/fecommunity/reactpress', 'admin@gaoredu.com')
23
+ .setLicense('MIT', 'https://github.com/fecommunity/reactpress/blob/main/LICENSE')
24
+ .addServer(configService.get('SERVER_SITE_URL', 'http://localhost:3002'), 'API Server')
25
+ .build();
26
+ console.log('🔨 Generating Swagger document...');
27
+ const document = swagger_1.SwaggerModule.createDocument(app, swaggerConfig);
28
+ const outputPath = path_1.join(__dirname, '../public/swagger.json');
29
+ const publicDir = path_1.join(__dirname, '../public');
30
+ if (!fs_1.existsSync(publicDir)) {
31
+ console.log('📁 Creating public directory...');
32
+ require('fs').mkdirSync(publicDir, { recursive: true });
33
+ }
34
+ if (fs_1.existsSync(outputPath)) {
35
+ console.log('đŸ—‘ī¸ Removing existing swagger.json file...');
36
+ fs_1.unlinkSync(outputPath);
37
+ }
38
+ console.log('💾 Writing Swagger JSON to file...');
39
+ fs_1.writeFileSync(outputPath, JSON.stringify(document, null, 2));
40
+ console.log(`✅ Success! Swagger JSON generated at: ${outputPath}`);
41
+ console.log('🎉 Swagger generation process completed successfully');
42
+ process.exit(0);
43
+ }
44
+ catch (error) {
45
+ console.error('❌ Error during Swagger generation:', error.message);
46
+ const existingPath = path_1.join(__dirname, '../public/swagger.json');
47
+ if (fs_1.existsSync(existingPath)) {
48
+ console.log('â„šī¸ Using existing swagger.json file');
49
+ console.log('🎉 Swagger generation process completed successfully');
50
+ process.exit(0);
51
+ }
52
+ else {
53
+ console.error('❌ No existing swagger.json file found');
54
+ process.exit(1);
55
+ }
56
+ }
57
+ finally {
58
+ }
59
+ }
60
+ generateSwaggerJson().catch(e => {
61
+ console.error('đŸ’Ĩ Unhandled error in generateSwaggerJson:', e.message);
62
+ const existingPath = path_1.join(__dirname, '../public/swagger.json');
63
+ if (fs_1.existsSync(existingPath)) {
64
+ console.log('â„šī¸ Using existing swagger.json file');
65
+ console.log('🎉 Swagger generation process completed successfully');
66
+ process.exit(0);
67
+ }
68
+ else {
69
+ console.error('❌ No existing swagger.json file found');
70
+ process.exit(1);
71
+ }
72
+ });
73
+ //# sourceMappingURL=generate-swagger.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generate-swagger.js","sourceRoot":"","sources":["../src/generate-swagger.ts"],"names":[],"mappings":";;AAAA,uCAA2C;AAC3C,6CAAiE;AACjE,2BAA2D;AAC3D,+BAA4B;AAC5B,6CAAyC;AAEzC,KAAK,UAAU,mBAAmB;IAChC,IAAI,GAAG,CAAC;IACR,IAAI;QACF,OAAO,CAAC,GAAG,CAAC,wCAAwC,CAAC,CAAC;QAGtD,GAAG,GAAG,MAAM,kBAAW,CAAC,wBAAwB,CAAC,sBAAS,EAAE;YAC1D,MAAM,EAAE,CA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,OAAO,CAAC,KAAK,CAAC,uCAAuC,CAAC,CAAC;QACvD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;KACjB;AACH,CAAC,CAAC,CAAC"}
Binary file
@@ -0,0 +1,11 @@
1
+ .swagger-ui div.topbar {
2
+ display: none !important;
3
+ padding: 0 !important;
4
+ }
5
+
6
+
7
+ .swagger-ui .scheme-container {
8
+ display: none !important;
9
+ margin: 0 !important;
10
+ padding: 0 !important;
11
+ }
package/dist/starter.js CHANGED
@@ -9,37 +9,10 @@ const express = require("express");
9
9
  const rateLimit = require("express-rate-limit");
10
10
  const helmet = require("helmet");
11
11
  const path_1 = require("path");
12
+ const swagger_themes_1 = require("swagger-themes");
12
13
  const app_module_1 = require("./app.module");
13
14
  const http_exception_filter_1 = require("./filters/http-exception.filter");
14
15
  const transform_interceptor_1 = require("./interceptors/transform.interceptor");
15
- const checkPortAvailability = (port) => {
16
- return new Promise((resolve) => {
17
- const net = require('net');
18
- const tester = net.createServer()
19
- .once('error', () => resolve(false))
20
- .once('listening', () => tester.once('close', () => resolve(true)).close())
21
- .listen(port);
22
- });
23
- };
24
- const findAvailableApplicationPort = async (startPort, maxAttempts = 10) => {
25
- for (let i = 0; i < maxAttempts; i++) {
26
- const portToTry = startPort + i;
27
- if (await checkPortAvailability(portToTry)) {
28
- return portToTry;
29
- }
30
- }
31
- throw new Error(`No available ports found in range ${startPort}-${startPort + maxAttempts - 1}`);
32
- };
33
- const waitForPort = async (port, timeout = 30000) => {
34
- const startTime = Date.now();
35
- while (Date.now() - startTime < timeout) {
36
- if (await checkPortAvailability(port)) {
37
- return true;
38
- }
39
- await new Promise(resolve => setTimeout(resolve, 500));
40
- }
41
- return false;
42
- };
43
16
  async function bootstrap() {
44
17
  try {
45
18
  const app = await core_1.NestFactory.create(app_module_1.AppModule);
@@ -59,25 +32,35 @@ async function bootstrap() {
59
32
  app.use(bodyParser.json({ limit: '10mb' }));
60
33
  app.use(bodyParser.urlencoded({ limit: '10mb', extended: true }));
61
34
  const swaggerConfig = new swagger_1.DocumentBuilder()
62
- .setTitle('ReactPress Open Api')
63
- .setDescription('ReactPress Open Api Document')
64
- .setVersion('1.0')
35
+ .setTitle('ReactPress API Documentation')
36
+ .setDescription('Comprehensive API documentation for ReactPress - A modern content management system built with NestJS')
37
+ .setVersion('2.0')
38
+ .setContact('ReactPress Team', 'https://github.com/fecommunity/reactpress', 'admin@gaoredu.com')
39
+ .setLicense('MIT', 'https://github.com/fecommunity/reactpress/blob/main/LICENSE')
40
+ .addServer(configService.get('SERVER_SITE_URL', 'http://localhost:3002'), 'API Server')
65
41
  .build();
66
42
  const document = swagger_1.SwaggerModule.createDocument(app, swaggerConfig);
67
- swagger_1.SwaggerModule.setup('api', app, document);
43
+ const theme = new swagger_themes_1.SwaggerTheme();
44
+ const options = {
45
+ customCss: theme.getBuffer(swagger_themes_1.SwaggerThemeNameEnum.MATERIAL),
46
+ customSiteTitle: 'ReactPress API Documentation',
47
+ customfavIcon: '/public/favicon.png',
48
+ swaggerOptions: {
49
+ docExpansion: 'list',
50
+ filter: true,
51
+ showRequestDuration: true,
52
+ persistAuthorization: true,
53
+ displayOperationId: true,
54
+ operationsSorter: 'method',
55
+ tagsSorter: 'alpha',
56
+ },
57
+ customCssUrl: '/public/swagger/custom.css',
58
+ };
59
+ swagger_1.SwaggerModule.setup('api', app, document, options);
68
60
  const configuredPort = configService.get('SERVER_PORT', 3002);
69
- const isPortAvailable = await checkPortAvailability(configuredPort);
70
- if (!isPortAvailable) {
71
- console.warn(`[ReactPress] Port ${configuredPort} is not available, waiting for it to be released...`);
72
- const portReleased = await waitForPort(configuredPort);
73
- if (!portReleased) {
74
- console.error(`[ReactPress] Port ${configuredPort} is still occupied after waiting`);
75
- process.exit(1);
76
- }
77
- }
78
61
  await app.listen(configuredPort);
79
62
  console.log(`[ReactPress] Application started on http://localhost:${configuredPort}`);
80
- console.log(`[ReactPress] Please visit http://localhost:${configuredPort}/api manually`);
63
+ console.log(`[ReactPress] API Documentation available at http://localhost:${configuredPort}/api`);
81
64
  return app;
82
65
  }
83
66
  catch (error) {
@@ -1 +1 @@
1
- {"version":3,"file":"starter.js","sourceRoot":"","sources":["../src/starter.ts"],"names":[],"mappings":";;;AAAA,uCAA2C;AAC3C,6CAAiE;AACjE,0CAA0C;AAC1C,2CAA2C;AAC3C,mCAAmC;AACnC,gDAAgD;AAChD,iCAAiC;AACjC,+BAA4B;AAE5B,6CAAyC;AACzC,2EAAsE;AACtE,gFAA4E;AAG5E,MAAM,qBAAqB,GAAG,CAAC,IAAY,EAAoB,EAAE;IAC/D,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QAC7B,MAAM,GAAG,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC;QAC3B,MAAM,MAAM,GAAG,GAAG,CAAC,YAAY,EAAE;aAC9B,IAAI,CAAC,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;aACnC,IAAI,CAAC,WAAW,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC;aAC1E,MAAM,CAAC,IAAI,CAAC,CAAC;IAClB,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAGF,MAAM,4BAA4B,GAAG,KAAK,EAAE,SAAiB,EAAE,WAAW,GAAG,EAAE,EAAmB,EAAE;IAClG,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,WAAW,EAAE,CAAC,EAAE,EAAE;QACpC,MAAM,SAAS,GAAG,SAAS,GAAG,CAAC,CAAC;QAChC,IAAI,MAAM,qBAAqB,CAAC,SAAS,CAAC,EAAE;YAC1C,OAAO,SAAS,CAAC;SAClB;KACF;IACD,MAAM,IAAI,KAAK,CAAC,qCAAqC,SAAS,IAAI,SAAS,GAAG,WAAW,GAAG,CAAC,EAAE,CAAC,CAAC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AAC,CAAC;AAClB,CAAC,CAAC,CAAC;AAEH,OAAO,CAAC,EAAE,CAAC,SAAS,EAAE,GAAG,EAAE;IACzB,OAAO,CAAC,GAAG,CAAC,wDAAwD,CAAC,CAAC;IACtE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
@@ -4171,6 +4171,11 @@
4171
4171
  "signature": "b82491e2990291580288c5602d4c017238977749d52b17391f0e45d9a29be644",
4172
4172
  "affectsGlobalScope": false
4173
4173
  },
4174
+ "../src/generate-swagger.ts": {
4175
+ "version": "3f7e45629068361709dc68d099fd94f20556ef54b7f4930da675546fd7db30be",
4176
+ "signature": "8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881",
4177
+ "affectsGlobalScope": false
4178
+ },
4174
4179
  "../../node_modules/.pnpm/@types+mime@1.3.5/node_modules/@types/mime/index.d.ts": {
4175
4180
  "version": "d3f2d715f57df3f04bf7b16dde01dec10366f64fce44503c92b8f78f614c1769",
4176
4181
  "signature": "d3f2d715f57df3f04bf7b16dde01dec10366f64fce44503c92b8f78f614c1769",
@@ -4386,6 +4391,46 @@
4386
4391
  "signature": "3361d195b928b5dc12d77637bf7042a48a82d66e98f2d85742462ef8207f39a3",
4387
4392
  "affectsGlobalScope": false
4388
4393
  },
4394
+ "../../node_modules/.pnpm/swagger-themes@1.4.3/node_modules/swagger-themes/build/types/default-config.d.ts": {
4395
+ "version": "76e7dbb737e4b135a92f55bc55071c66ce7a5913096615ce0af30f17e36c0e4f",
4396
+ "signature": "76e7dbb737e4b135a92f55bc55071c66ce7a5913096615ce0af30f17e36c0e4f",
4397
+ "affectsGlobalScope": false
4398
+ },
4399
+ "../../node_modules/.pnpm/swagger-themes@1.4.3/node_modules/swagger-themes/build/enums/swagger-theme-name.d.ts": {
4400
+ "version": "313411602d8f1f3c00ce96a82fd36569b27ada9f0a6349ea1f57b2d6da2b8bdd",
4401
+ "signature": "313411602d8f1f3c00ce96a82fd36569b27ada9f0a6349ea1f57b2d6da2b8bdd",
4402
+ "affectsGlobalScope": false
4403
+ },
4404
+ "../../node_modules/.pnpm/swagger-themes@1.4.3/node_modules/swagger-themes/build/types/swagger-theme-name.d.ts": {
4405
+ "version": "8075ee4718381e011d0ce7390e50d822c9a14af27ac4a6443f113bff0ef9a055",
4406
+ "signature": "8075ee4718381e011d0ce7390e50d822c9a14af27ac4a6443f113bff0ef9a055",
4407
+ "affectsGlobalScope": false
4408
+ },
4409
+ "../../node_modules/.pnpm/swagger-themes@1.4.3/node_modules/swagger-themes/build/types/version-swagger.d.ts": {
4410
+ "version": "2a871b50fdab29f5844621dcd45751b30e90632678a79f90aa94a1bc38f3971a",
4411
+ "signature": "2a871b50fdab29f5844621dcd45751b30e90632678a79f90aa94a1bc38f3971a",
4412
+ "affectsGlobalScope": false
4413
+ },
4414
+ "../../node_modules/.pnpm/swagger-themes@1.4.3/node_modules/swagger-themes/build/types/index.d.ts": {
4415
+ "version": "e92eb34fccde6ccbb2aee67590695247f64d8c6e064a2519dbca70fa415bc100",
4416
+ "signature": "e92eb34fccde6ccbb2aee67590695247f64d8c6e064a2519dbca70fa415bc100",
4417
+ "affectsGlobalScope": false
4418
+ },
4419
+ "../../node_modules/.pnpm/swagger-themes@1.4.3/node_modules/swagger-themes/build/swagger-theme.d.ts": {
4420
+ "version": "b91c1e75d90cbbc9aad18b92d473a9846872beaec6fa52d75d51b05e15925b9c",
4421
+ "signature": "b91c1e75d90cbbc9aad18b92d473a9846872beaec6fa52d75d51b05e15925b9c",
4422
+ "affectsGlobalScope": false
4423
+ },
4424
+ "../../node_modules/.pnpm/swagger-themes@1.4.3/node_modules/swagger-themes/build/enums/index.d.ts": {
4425
+ "version": "d0257072dc5b729c229809b93475f3d75255b3d08a712ff35c8f9cba0779618b",
4426
+ "signature": "d0257072dc5b729c229809b93475f3d75255b3d08a712ff35c8f9cba0779618b",
4427
+ "affectsGlobalScope": false
4428
+ },
4429
+ "../../node_modules/.pnpm/swagger-themes@1.4.3/node_modules/swagger-themes/build/index.d.ts": {
4430
+ "version": "ecba64d16ae1df9ae70d07c74c35753afa0bdb4ad619916b3489c2331347bcf4",
4431
+ "signature": "ecba64d16ae1df9ae70d07c74c35753afa0bdb4ad619916b3489c2331347bcf4",
4432
+ "affectsGlobalScope": false
4433
+ },
4389
4434
  "../../node_modules/.pnpm/log4js@6.9.1/node_modules/log4js/types/log4js.d.ts": {
4390
4435
  "version": "07eaba6c381ae3c3f513d61a39adc62373fa538f5f2e3852abbc7505f45e44b6",
4391
4436
  "signature": "07eaba6c381ae3c3f513d61a39adc62373fa538f5f2e3852abbc7505f45e44b6",
@@ -4927,7 +4972,7 @@
4927
4972
  "affectsGlobalScope": false
4928
4973
  },
4929
4974
  "../src/starter.ts": {
4930
- "version": "f66205904c86fbc75c7a612f6fe493507bf4c4672658557719e7960a2b349cdc",
4975
+ "version": "191b456d97fb1446d4fb5454f0c9e8145e4020c7e4f507868c26c351e7ca2a45",
4931
4976
  "signature": "ac3110d2e92f7abdc209ad40bda485a9d19057b1d53fb1c276e5953de9e5bc21",
4932
4977
  "affectsGlobalScope": false
4933
4978
  },
@@ -4996,9 +5041,9 @@
4996
5041
  "signature": "24bd01a91f187b22456c7171c07dbf44f3ad57ebd50735aab5c13fa23d7114b4",
4997
5042
  "affectsGlobalScope": false
4998
5043
  },
4999
- "../../node_modules/.pnpm/buffer@6.0.3/node_modules/buffer/index.d.ts": {
5000
- "version": "4967529644e391115ca5592184d4b63980569adf60ee685f968fd59ab1557188",
5001
- "signature": "4967529644e391115ca5592184d4b63980569adf60ee685f968fd59ab1557188",
5044
+ "../../node_modules/.pnpm/buffer@5.7.1/node_modules/buffer/index.d.ts": {
5045
+ "version": "8e9c23ba78aabc2e0a27033f18737a6df754067731e69dc5f52823957d60a4b6",
5046
+ "signature": "8e9c23ba78aabc2e0a27033f18737a6df754067731e69dc5f52823957d60a4b6",
5002
5047
  "affectsGlobalScope": false
5003
5048
  },
5004
5049
  "../../node_modules/.pnpm/@types+superagent@8.1.9/node_modules/@types/superagent/lib/request-base.d.ts": {
@@ -6700,7 +6745,7 @@
6700
6745
  "../../node_modules/.pnpm/axios@0.23.0/node_modules/axios/index.d.ts": [
6701
6746
  "../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/typings.d.ts"
6702
6747
  ],
6703
- "../../node_modules/.pnpm/buffer@6.0.3/node_modules/buffer/index.d.ts": [
6748
+ "../../node_modules/.pnpm/buffer@5.7.1/node_modules/buffer/index.d.ts": [
6704
6749
  "../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/typings.d.ts"
6705
6750
  ],
6706
6751
  "../../node_modules/.pnpm/class-transformer@0.2.3/node_modules/class-transformer/classtransformer.d.ts": [
@@ -7900,6 +7945,39 @@
7900
7945
  "../../node_modules/.pnpm/rxjs@6.6.7/node_modules/rxjs/internal/operators/zip.d.ts",
7901
7946
  "../../node_modules/.pnpm/rxjs@6.6.7/node_modules/rxjs/internal/operators/zipall.d.ts"
7902
7947
  ],
7948
+ "../../node_modules/.pnpm/swagger-themes@1.4.3/node_modules/swagger-themes/build/enums/index.d.ts": [
7949
+ "../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/typings.d.ts",
7950
+ "../../node_modules/.pnpm/swagger-themes@1.4.3/node_modules/swagger-themes/build/enums/swagger-theme-name.d.ts"
7951
+ ],
7952
+ "../../node_modules/.pnpm/swagger-themes@1.4.3/node_modules/swagger-themes/build/enums/swagger-theme-name.d.ts": [
7953
+ "../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/typings.d.ts"
7954
+ ],
7955
+ "../../node_modules/.pnpm/swagger-themes@1.4.3/node_modules/swagger-themes/build/index.d.ts": [
7956
+ "../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/typings.d.ts",
7957
+ "../../node_modules/.pnpm/swagger-themes@1.4.3/node_modules/swagger-themes/build/enums/index.d.ts",
7958
+ "../../node_modules/.pnpm/swagger-themes@1.4.3/node_modules/swagger-themes/build/swagger-theme.d.ts",
7959
+ "../../node_modules/.pnpm/swagger-themes@1.4.3/node_modules/swagger-themes/build/types/index.d.ts"
7960
+ ],
7961
+ "../../node_modules/.pnpm/swagger-themes@1.4.3/node_modules/swagger-themes/build/swagger-theme.d.ts": [
7962
+ "../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/typings.d.ts",
7963
+ "../../node_modules/.pnpm/swagger-themes@1.4.3/node_modules/swagger-themes/build/types/index.d.ts"
7964
+ ],
7965
+ "../../node_modules/.pnpm/swagger-themes@1.4.3/node_modules/swagger-themes/build/types/default-config.d.ts": [
7966
+ "../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/typings.d.ts"
7967
+ ],
7968
+ "../../node_modules/.pnpm/swagger-themes@1.4.3/node_modules/swagger-themes/build/types/index.d.ts": [
7969
+ "../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/typings.d.ts",
7970
+ "../../node_modules/.pnpm/swagger-themes@1.4.3/node_modules/swagger-themes/build/types/default-config.d.ts",
7971
+ "../../node_modules/.pnpm/swagger-themes@1.4.3/node_modules/swagger-themes/build/types/swagger-theme-name.d.ts",
7972
+ "../../node_modules/.pnpm/swagger-themes@1.4.3/node_modules/swagger-themes/build/types/version-swagger.d.ts"
7973
+ ],
7974
+ "../../node_modules/.pnpm/swagger-themes@1.4.3/node_modules/swagger-themes/build/types/swagger-theme-name.d.ts": [
7975
+ "../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/typings.d.ts",
7976
+ "../../node_modules/.pnpm/swagger-themes@1.4.3/node_modules/swagger-themes/build/enums/swagger-theme-name.d.ts"
7977
+ ],
7978
+ "../../node_modules/.pnpm/swagger-themes@1.4.3/node_modules/swagger-themes/build/types/version-swagger.d.ts": [
7979
+ "../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/typings.d.ts"
7980
+ ],
7903
7981
  "../../node_modules/.pnpm/typeorm@0.2.45_mysql2@3.12.0/node_modules/typeorm/cache/queryresultcache.d.ts": [
7904
7982
  "../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/typings.d.ts",
7905
7983
  "../../node_modules/.pnpm/typeorm@0.2.45_mysql2@3.12.0/node_modules/typeorm/cache/queryresultcacheoptions.d.ts",
@@ -10080,6 +10158,14 @@
10080
10158
  "../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/typings.d.ts",
10081
10159
  "../src/logger/index.ts"
10082
10160
  ],
10161
+ "../src/generate-swagger.ts": [
10162
+ "../../node_modules/.pnpm/@nestjs+core@6.11.11_@nestjs+common@6.11.11_reflect-metadata@0.1.14_rxjs@6.6.7__encodin_bd967b2290cd06c255f4246a7c6b6978/node_modules/@nestjs/core/index.d.ts",
10163
+ "../../node_modules/.pnpm/@nestjs+swagger@4.8.2_@nestjs+common@6.11.11_reflect-metadata@0.1.14_rxjs@6.6.7__@nestj_c3362467100c8f1dffaacb0485638c6c/node_modules/@nestjs/swagger/index.d.ts",
10164
+ "../../node_modules/.pnpm/@types+node@12.20.55/node_modules/@types/node/fs.d.ts",
10165
+ "../../node_modules/.pnpm/@types+node@12.20.55/node_modules/@types/node/path.d.ts",
10166
+ "../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/typings.d.ts",
10167
+ "../src/app.module.ts"
10168
+ ],
10083
10169
  "../src/interceptors/transform.interceptor.ts": [
10084
10170
  "../../node_modules/.pnpm/@nestjs+common@6.11.11_reflect-metadata@0.1.14_rxjs@6.6.7/node_modules/@nestjs/common/index.d.ts",
10085
10171
  "../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/typings.d.ts",
@@ -10611,6 +10697,7 @@
10611
10697
  "../../node_modules/.pnpm/@types+express@4.17.18/node_modules/@types/express/index.d.ts",
10612
10698
  "../../node_modules/.pnpm/@types+node@12.20.55/node_modules/@types/node/path.d.ts",
10613
10699
  "../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/typings.d.ts",
10700
+ "../../node_modules/.pnpm/swagger-themes@1.4.3/node_modules/swagger-themes/build/index.d.ts",
10614
10701
  "../src/app.module.ts",
10615
10702
  "../src/filters/http-exception.filter.ts",
10616
10703
  "../src/interceptors/transform.interceptor.ts"
@@ -12308,7 +12395,7 @@
12308
12395
  "../../node_modules/.pnpm/axios@0.23.0/node_modules/axios/index.d.ts": [
12309
12396
  "../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/typings.d.ts"
12310
12397
  ],
12311
- "../../node_modules/.pnpm/buffer@6.0.3/node_modules/buffer/index.d.ts": [
12398
+ "../../node_modules/.pnpm/buffer@5.7.1/node_modules/buffer/index.d.ts": [
12312
12399
  "../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/typings.d.ts"
12313
12400
  ],
12314
12401
  "../../node_modules/.pnpm/class-transformer@0.2.3/node_modules/class-transformer/classtransformer.d.ts": [
@@ -13508,6 +13595,39 @@
13508
13595
  "../../node_modules/.pnpm/rxjs@6.6.7/node_modules/rxjs/internal/operators/zip.d.ts",
13509
13596
  "../../node_modules/.pnpm/rxjs@6.6.7/node_modules/rxjs/internal/operators/zipall.d.ts"
13510
13597
  ],
13598
+ "../../node_modules/.pnpm/swagger-themes@1.4.3/node_modules/swagger-themes/build/enums/index.d.ts": [
13599
+ "../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/typings.d.ts",
13600
+ "../../node_modules/.pnpm/swagger-themes@1.4.3/node_modules/swagger-themes/build/enums/swagger-theme-name.d.ts"
13601
+ ],
13602
+ "../../node_modules/.pnpm/swagger-themes@1.4.3/node_modules/swagger-themes/build/enums/swagger-theme-name.d.ts": [
13603
+ "../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/typings.d.ts"
13604
+ ],
13605
+ "../../node_modules/.pnpm/swagger-themes@1.4.3/node_modules/swagger-themes/build/index.d.ts": [
13606
+ "../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/typings.d.ts",
13607
+ "../../node_modules/.pnpm/swagger-themes@1.4.3/node_modules/swagger-themes/build/enums/index.d.ts",
13608
+ "../../node_modules/.pnpm/swagger-themes@1.4.3/node_modules/swagger-themes/build/swagger-theme.d.ts",
13609
+ "../../node_modules/.pnpm/swagger-themes@1.4.3/node_modules/swagger-themes/build/types/index.d.ts"
13610
+ ],
13611
+ "../../node_modules/.pnpm/swagger-themes@1.4.3/node_modules/swagger-themes/build/swagger-theme.d.ts": [
13612
+ "../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/typings.d.ts",
13613
+ "../../node_modules/.pnpm/swagger-themes@1.4.3/node_modules/swagger-themes/build/types/index.d.ts"
13614
+ ],
13615
+ "../../node_modules/.pnpm/swagger-themes@1.4.3/node_modules/swagger-themes/build/types/default-config.d.ts": [
13616
+ "../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/typings.d.ts"
13617
+ ],
13618
+ "../../node_modules/.pnpm/swagger-themes@1.4.3/node_modules/swagger-themes/build/types/index.d.ts": [
13619
+ "../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/typings.d.ts",
13620
+ "../../node_modules/.pnpm/swagger-themes@1.4.3/node_modules/swagger-themes/build/types/default-config.d.ts",
13621
+ "../../node_modules/.pnpm/swagger-themes@1.4.3/node_modules/swagger-themes/build/types/swagger-theme-name.d.ts",
13622
+ "../../node_modules/.pnpm/swagger-themes@1.4.3/node_modules/swagger-themes/build/types/version-swagger.d.ts"
13623
+ ],
13624
+ "../../node_modules/.pnpm/swagger-themes@1.4.3/node_modules/swagger-themes/build/types/swagger-theme-name.d.ts": [
13625
+ "../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/typings.d.ts",
13626
+ "../../node_modules/.pnpm/swagger-themes@1.4.3/node_modules/swagger-themes/build/enums/swagger-theme-name.d.ts"
13627
+ ],
13628
+ "../../node_modules/.pnpm/swagger-themes@1.4.3/node_modules/swagger-themes/build/types/version-swagger.d.ts": [
13629
+ "../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/typings.d.ts"
13630
+ ],
13511
13631
  "../../node_modules/.pnpm/typeorm@0.2.45_mysql2@3.12.0/node_modules/typeorm/cache/queryresultcache.d.ts": [
13512
13632
  "../../node_modules/.pnpm/date-fns@2.30.0/node_modules/date-fns/typings.d.ts",
13513
13633
  "../../node_modules/.pnpm/typeorm@0.2.45_mysql2@3.12.0/node_modules/typeorm/cache/queryresultcacheoptions.d.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fecommunity/reactpress-server",
3
- "version": "1.0.0-beta.47",
3
+ "version": "1.0.0-beta.48",
4
4
  "description": "ReactPress Server - NestJS-based backend API for ReactPress CMS",
5
5
  "author": "fecommunity",
6
6
  "license": "MIT",
@@ -48,7 +48,7 @@
48
48
  "@nestjs/jwt": "^6.1.1",
49
49
  "@nestjs/passport": "^6.1.1",
50
50
  "@nestjs/platform-express": "^6.11.5",
51
- "@nestjs/swagger": "^4.7.15",
51
+ "@nestjs/swagger": "^4.8.2",
52
52
  "@nestjs/typeorm": "^6.2.0",
53
53
  "@types/express-serve-static-core": "^4.19.5",
54
54
  "ali-oss": "^6.5.1",
@@ -83,7 +83,8 @@
83
83
  "open": "^8.2.1",
84
84
  "express": "^4.18.2",
85
85
  "@nestjs/cli": "^6.9.0",
86
- "pm2": "^5.2.0"
86
+ "pm2": "^5.2.0",
87
+ "swagger-themes": "^1.4.3"
87
88
  },
88
89
  "devDependencies": {
89
90
  "@nestjs/schematics": "^6.7.0",
@@ -144,6 +145,7 @@
144
145
  "pm2:restart": "pm2 restart reactpress-server",
145
146
  "pm2:delete": "pm2 delete reactpress-server",
146
147
  "pm2:logs": "pm2 logs reactpress-server",
147
- "pm2:status": "pm2 status reactpress-server"
148
+ "pm2:status": "pm2 status reactpress-server",
149
+ "generate:swagger": "ts-node src/generate-swagger.ts"
148
150
  }
149
151
  }
Binary file
@@ -0,0 +1,11 @@
1
+ .swagger-ui div.topbar {
2
+ display: none !important;
3
+ padding: 0 !important;
4
+ }
5
+
6
+
7
+ .swagger-ui .scheme-container {
8
+ display: none !important;
9
+ margin: 0 !important;
10
+ padding: 0 !important;
11
+ }