adminforth 1.1.6 → 1.1.8

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.
@@ -41,18 +41,11 @@ class CodeInjector {
41
41
  this.allComponentNames = {};
42
42
  this.srcFoldersToSync = {};
43
43
  this.adminforth = adminforth;
44
- process.on('SIGINT', () => {
45
- console.log('Received SIGINT.');
44
+ ['SIGINT', 'SIGTERM', 'SIGQUIT']
45
+ .forEach(signal => process.on(signal, () => {
46
46
  this.cleanup();
47
- });
48
- process.on('SIGTERM', () => {
49
- console.log('Received SIGTERM.');
50
- this.cleanup();
51
- });
52
- process.on('exit', () => {
53
- console.log('Exiting.');
54
- this.cleanup();
55
- });
47
+ process.exit();
48
+ }));
56
49
  }
57
50
  // async runShell({command, verbose = false}) {
58
51
  // console.log(`⚙️ Running shell ${command}...`);
@@ -363,7 +356,7 @@ class CodeInjector {
363
356
  }
364
357
  yield this.runNpmShell({ command: 'ci', verbose, cwd: CodeInjector.SPA_TMP_PATH });
365
358
  // get packages with version from customPackage
366
- const IGNORE_PACKAGES = ['tsx', 'typescript', 'express', 'nodemon'];
359
+ const IGNORE_PACKAGES = ['tsx', 'typescript', 'express', 'nodemon', 'adminforth'];
367
360
  const customPackgeNames = [...Object.keys(usersPackage.dependencies), ...Object.keys(usersPackage.devDependencies || [])]
368
361
  .filter((packageName) => !IGNORE_PACKAGES.includes(packageName))
369
362
  .reduce((acc, packageName) => {
@@ -2,7 +2,7 @@
2
2
  <div class="relative">
3
3
  <Teleport to="body">
4
4
  <Filters
5
- :columns="coreStore.resource.columns"
5
+ :columns="coreStore.resource?.columns"
6
6
  :columnsMinMax="columnsMinMax" :show="filtersShow"
7
7
  @hide="filtersShow = false"
8
8
  />
@@ -48,20 +48,12 @@ class CodeInjector implements CodeInjectorType {
48
48
  constructor(adminforth) {
49
49
  this.adminforth = adminforth;
50
50
 
51
- process.on('SIGINT', () => {
52
- console.log('Received SIGINT.');
53
- this.cleanup();
54
- });
55
-
56
- process.on('SIGTERM', () => {
57
- console.log('Received SIGTERM.');
58
- this.cleanup();
59
- });
51
+ ['SIGINT', 'SIGTERM', 'SIGQUIT']
52
+ .forEach(signal => process.on(signal, () => {
53
+ this.cleanup();
54
+ process.exit();
55
+ }));
60
56
 
61
- process.on('exit', () => {
62
- console.log('Exiting.');
63
- this.cleanup();
64
- });
65
57
  }
66
58
 
67
59
  // async runShell({command, verbose = false}) {
@@ -416,7 +408,7 @@ class CodeInjector implements CodeInjectorType {
416
408
  await this.runNpmShell({command: 'ci', verbose, cwd: CodeInjector.SPA_TMP_PATH});
417
409
 
418
410
  // get packages with version from customPackage
419
- const IGNORE_PACKAGES = ['tsx', 'typescript', 'express', 'nodemon'];
411
+ const IGNORE_PACKAGES = ['tsx', 'typescript', 'express', 'nodemon', 'adminforth'];
420
412
  const customPackgeNames = [...Object.keys(usersPackage.dependencies), ...Object.keys(usersPackage.devDependencies || [])]
421
413
  .filter((packageName) => !IGNORE_PACKAGES.includes(packageName))
422
414
  .reduce(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adminforth",
3
- "version": "1.1.6",
3
+ "version": "1.1.8",
4
4
  "description": "OpenSource Vue3 powered forth-generation admin panel",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -2,7 +2,7 @@
2
2
  <div class="relative">
3
3
  <Teleport to="body">
4
4
  <Filters
5
- :columns="coreStore.resource.columns"
5
+ :columns="coreStore.resource?.columns"
6
6
  :columnsMinMax="columnsMinMax" :show="filtersShow"
7
7
  @hide="filtersShow = false"
8
8
  />